Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 5
Version is socks5 version number.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PktConn ¶
type PktConn struct { netproxy.PacketConn // contains filtered or unexported fields }
PktConn .
func NewPktConn ¶
func NewPktConn(c netproxy.PacketConn, proxyAddr string, targetAddr string, ctrlConn netproxy.Conn) *PktConn
NewPktConn returns a PktConn, the writeAddr must be *net.UDPAddr or *net.UnixAddr.
Click to show internal directories.
Click to hide internal directories.