Documentation
¶
Overview ¶
Package socks provides a barebones SOCKSv5 server handshake protocol implementation according to RFC1928. https://datatracker.ietf.org/doc/html/rfc1928
Index ¶
Constants ¶
View Source
const ( SOCKSv5 = 0x05 CONNECT = 0x01 BIND = 0x02 UDP_ASSOC = 0x03 ADDR_IPV4 = 0x01 ADDR_FQDN = 0x03 ADDR_IPV6 = 0x04 RSV = 0x00 )
Variables ¶
View Source
var ErrFragment = errors.New("received UDP message is fragmented, fragmentation is not supported")
Functions ¶
func WriteStatus ¶
Types ¶
type SocksStatus ¶
type SocksStatus byte
const ( StatusOK SocksStatus = iota StatusGeneralFailure StatusNotAllowed StatusNetworkUnreachable StatusHostUnreachable StatusConnRefused StatusTTLExpired StatusCommandNotSupported StatusAddressNotSupported )
func (SocksStatus) Error ¶
func (e SocksStatus) Error() string
Click to show internal directories.
Click to hide internal directories.