Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MethodTLS is an extended SOCKS5 method with tls encryption support. MethodTLS uint8 = 0x80 // MethodTLSAuth is an extended SOCKS5 method with tls encryption and authentication support. MethodTLSAuth uint8 = 0x82 // MethodMux is an extended SOCKS5 method for stream multiplexing. MethodMux = 0x88 )
View Source
const ( // CmdMuxBind is an extended SOCKS5 request CMD for // multiplexing transport with the binding server. CmdMuxBind uint8 = 0xF2 // CmdUDPTun is an extended SOCKS5 request CMD for UDP over TCP. CmdUDPTun uint8 = 0xF3 )
Variables ¶
View Source
var (
DefaultBufferSize = 4096
)
Functions ¶
func UDPConn ¶
func UDPConn(c net.PacketConn, bufferSize int) net.PacketConn
func UDPTunClientPacketConn ¶
func UDPTunClientPacketConn(c net.Conn) net.PacketConn
func UDPTunServerConn ¶
func UDPTunServerConn(c net.Conn) net.PacketConn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.