Documentation
¶
Index ¶
Constants ¶
View Source
const ( CmdConnect = 1 CmdBind = 2 CmdUDPAssociate = 3 )
SOCKS request commands as defined in RFC 1928 section 4
View Source
const ( AtypIPv4 = 1 AtypDomainName = 3 AtypIPv6 = 4 )
SOCKS address types as defined in RFC 1928 section 5.
View Source
const MaxAddrLen = 1 + 1 + 253 + 2
MaxAddrLen is the max size of SOCKS address in bytes: ATYP(1) + DST.ADDR(1 + 253) + DST.PORT(2)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SocksError ¶
type SocksError int
const ( ErrGeneralFailure SocksError = iota + 1 ErrConnectionNotAllowed ErrNetworkUnreachable ErrHostUnreachable ErrConnectionRefused ErrTTLExpired ErrCommandNotSupported ErrAddressNotSupported )
SOCKS errors as defined in RFC 1928 section 6
func (SocksError) Error ¶
func (se SocksError) Error() string
Click to show internal directories.
Click to hide internal directories.