socks

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 4 Imported by: 0

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 UDPTunClientConn

func UDPTunClientConn(c net.Conn, targetAddr net.Addr) net.Conn

func UDPTunClientPacketConn

func UDPTunClientPacketConn(c net.Conn) net.PacketConn

func UDPTunServerConn

func UDPTunServerConn(c net.Conn) net.PacketConn

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL