Documentation ¶
Index ¶
- type SocksServer
- func (server *SocksServer) AcceptConnections(listener net.Listener)
- func (server *SocksServer) AcceptPackets(conn *net.UDPConn) error
- func (server *SocksServer) Dispatch(packet v2net.Packet)
- func (server *SocksServer) HandleConnection(connection net.Conn) error
- func (server *SocksServer) Listen(port uint16) error
- func (server *SocksServer) ListenUDP(port uint16) error
- type SocksServerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocksServer ¶ added in v0.6.1
type SocksServer struct {
// contains filtered or unexported fields
}
SocksServer is a SOCKS 5 proxy server
func NewSocksServer ¶ added in v0.6.1
func NewSocksServer(vp *core.Point, rawConfig []byte) *SocksServer
func (*SocksServer) AcceptConnections ¶ added in v0.6.1
func (server *SocksServer) AcceptConnections(listener net.Listener)
func (*SocksServer) AcceptPackets ¶ added in v0.6.1
func (server *SocksServer) AcceptPackets(conn *net.UDPConn) error
func (*SocksServer) Dispatch ¶ added in v0.6.2
func (server *SocksServer) Dispatch(packet v2net.Packet)
func (*SocksServer) HandleConnection ¶ added in v0.6.1
func (server *SocksServer) HandleConnection(connection net.Conn) error
func (*SocksServer) Listen ¶ added in v0.6.1
func (server *SocksServer) Listen(port uint16) error
func (*SocksServer) ListenUDP ¶ added in v0.6.1
func (server *SocksServer) ListenUDP(port uint16) error
type SocksServerFactory ¶ added in v0.6.1
type SocksServerFactory struct { }
func (SocksServerFactory) Create ¶ added in v0.6.1
func (factory SocksServerFactory) Create(vp *core.Point, config []byte) (core.InboundConnectionHandler, error)
Click to show internal directories.
Click to hide internal directories.