Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AddrTypeIPv4 is ... AddrTypeIPv4 = 1 // AddrTypeDomain is ... AddrTypeDomain = 3 // AddrTypeIPv6 is ... AddrTypeIPv6 = 4 )
View Source
const MaxAddrLen = 1 + 1 + 255 + 2
MaxAddrLen is the maximum length of socks.Addr
Variables ¶
View Source
var ( // ErrInvalidAddrType is ... ErrInvalidAddrType = errors.New("invalid address type") // ErrInvalidAddrLen is ... ErrInvalidAddrLen = errors.New("invalid address length") )
Functions ¶
Types ¶
type Addr ¶
type Addr struct {
// contains filtered or unexported fields
}
Addr is ...
func ReadAddrBuffer ¶
ReadAddrBuffer is ...
func ResolveAddrBuffer ¶
ResolveAddrBuffer is ...
Click to show internal directories.
Click to hide internal directories.