Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectCommand = uint8(1) NoAuth = uint8(0) )
****** The following is from https://github.com/armon/go-socks5 *****
View Source
const ( SuccessReply uint8 = iota ServerFailure RuleFailure NetworkUnreachable HostUnreachable ConnectionRefused TtlExpired CommandNotSupported AddrTypeNotSupported )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrSpec ¶
func ReadAddrSpec ¶
****** The following is from https://github.com/armon/go-socks5 *****
type AuthContext ¶
type Request ¶
type Request struct { // Protocol version Version uint8 // Requested command Command uint8 // AuthContext provided during negotiation AuthContext *AuthContext // AddrSpec of the the network that sent the request RemoteAddr *AddrSpec // AddrSpec of the desired destination DestAddr *AddrSpec BufConn io.Reader }
Click to show internal directories.
Click to hide internal directories.