Documentation ¶
Overview ¶
Package socks offers socks parsing operations.
Index ¶
Constants ¶
View Source
const ( CONNECT byte = 1 BIND byte = 2 UDPASSOCIATE byte = 3 )
SOCKS request commands as defined in rfc1928.
Variables ¶
This section is empty.
Functions ¶
func ToPacketPort ¶
ToPacketPort converts a port string to integer in packet byte order.
Types ¶
type Packet ¶
type Packet []byte
Packet type represents the raw data.
func (Packet) ReadString4a ¶
ReadString4a reads a string from the socket4a packet.
func (Packet) ReadString5 ¶
ReadString5 reads a string from the socket5 packet.
Click to show internal directories.
Click to hide internal directories.