Documentation ¶
Index ¶
Constants ¶
View Source
const (
Version = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command int
A Command represents a SOCKS command. See: https://tools.ietf.org/html/rfc1928
const ( // CmdConnect represents CONNECT command. CmdConnect Command = iota + 1 // CmdBind represents BIND command. CmdBind // CmdUDPAssociate represents UDP ASSOCIATE command. CmdUDPAssociate )
See: Page 5 in https://tools.ietf.org/html/rfc1928
type Reply ¶
type Reply int
A Reply represents a SOCKS command reply code. See: https://tools.ietf.org/html/rfc1928
const ( // StatusSucceeded repserents successed to reply. StatusSucceeded Reply = iota // StatusGeneralServerFailure : StatusGeneralServerFailure // StatusNotAllowedByRuleSet : StatusNotAllowedByRuleSet // StatusNetworkUnreachable : StatusNetworkUnreachable // StatusHostUnreachable : StatusHostUnreachable // StatusConnectionRefused : StatusConnectionRefused // StatusTTLExpired : StatusTTLExpired // StatusCommandNotSupported : StatusCommandNotSupported // StatusAddrTypeNotSupported : StatusAddrTypeNotSupported )
Click to show internal directories.
Click to hide internal directories.