Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrSpec ¶
AddrSpec is used to return the target AddrSpec which may be specified as IPv4, IPv6, or a FQDN
type Request ¶
type Request struct {
// Protocol version
Version uint8
// Requested command
Command uint8
// AddrSpec of the the network that sent the request
RemoteAddr *AddrSpec
// AddrSpec of the desired destination
DestAddr *AddrSpec
}
A Request represents request received by a server
type SocksServer ¶
type SocksServer struct {
// contains filtered or unexported fields
}
func NewSocksServer ¶
func (*SocksServer) HandleAuth ¶
func (ss *SocksServer) HandleAuth(conn net.Conn) error
func (*SocksServer) HandleRequest ¶
func (ss *SocksServer) HandleRequest(conn net.Conn) error
Handle client requests
func (*SocksServer) Run ¶
func (ss *SocksServer) Run() error
func (*SocksServer) SocksService ¶
func (ss *SocksServer) SocksService(conn net.Conn) error
Click to show internal directories.
Click to hide internal directories.