Documentation ¶
Index ¶
Constants ¶
View Source
const MaxAddrLen = 1 + 1 + 255 + 2
MaxAddrLen is the maximum size of SOCKS address in bytes.
Variables ¶
This section is empty.
Functions ¶
func NewTCPHandler ¶
func NewTCPHandler(proxyAddress string) core.TCPConnHandler
func NewTCPHandler(proxyHost string, proxyPort uint16) core.TCPConnHandler { return &tcpHandler{ proxyHost: proxyHost, proxyPort: proxyPort, } }
func NewUDPHandler ¶
func NewUDPHandler(proxyAddress string, timeout time.Duration) core.UDPConnHandler
Types ¶
Click to show internal directories.
Click to hide internal directories.