Documentation ¶
Index ¶
- Variables
- type SocksServer
- func (server *SocksServer) AcceptConnections(listener *net.TCPListener)
- func (server *SocksServer) AcceptPackets(conn *net.UDPConn) error
- func (server *SocksServer) HandleConnection(connection *net.TCPConn) error
- func (server *SocksServer) Listen(port uint16) error
- func (server *SocksServer) ListenUDP(port uint16) error
- type SocksServerFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnsupportedSocksCommand = errors.New("Unsupported socks command.") UnsupportedAuthMethod = errors.New("Unsupported auth method.") )
Functions ¶
This section is empty.
Types ¶
type SocksServer ¶
type SocksServer struct {
// contains filtered or unexported fields
}
SocksServer is a SOCKS 5 proxy server
func NewSocksServer ¶
func NewSocksServer(dispatcher app.PacketDispatcher, config *jsonconfig.SocksConfig) *SocksServer
func (*SocksServer) AcceptConnections ¶
func (server *SocksServer) AcceptConnections(listener *net.TCPListener)
func (*SocksServer) AcceptPackets ¶
func (server *SocksServer) AcceptPackets(conn *net.UDPConn) error
func (*SocksServer) HandleConnection ¶
func (server *SocksServer) HandleConnection(connection *net.TCPConn) error
func (*SocksServer) Listen ¶
func (server *SocksServer) Listen(port uint16) error
func (*SocksServer) ListenUDP ¶
func (server *SocksServer) ListenUDP(port uint16) error
type SocksServerFactory ¶
type SocksServerFactory struct { }
func (SocksServerFactory) Create ¶
func (factory SocksServerFactory) Create(dispatcher app.PacketDispatcher, rawConfig interface{}) (connhandler.InboundConnectionHandler, error)
Click to show internal directories.
Click to hide internal directories.