Documentation ¶
Index ¶
- Variables
- type Config
- type SocksServer
- func (this *SocksServer) AcceptConnections(listener *net.TCPListener)
- func (this *SocksServer) AcceptPackets(conn *net.UDPConn) error
- func (this *SocksServer) HandleConnection(connection *net.TCPConn) error
- func (this *SocksServer) Listen(port v2net.Port) error
- func (this *SocksServer) ListenUDP(port v2net.Port) 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(space app.Space, config Config) *SocksServer
func (*SocksServer) AcceptConnections ¶
func (this *SocksServer) AcceptConnections(listener *net.TCPListener)
func (*SocksServer) AcceptPackets ¶
func (this *SocksServer) AcceptPackets(conn *net.UDPConn) error
func (*SocksServer) HandleConnection ¶
func (this *SocksServer) HandleConnection(connection *net.TCPConn) error
type SocksServerFactory ¶
type SocksServerFactory struct { }
func (SocksServerFactory) Create ¶
func (this SocksServerFactory) Create(space app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error)
Click to show internal directories.
Click to hide internal directories.