socks

package
v0.0.0-...-401b346 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SocksCmd

func SocksCmd(socksConn net.Conn, cmd uint8, addrType uint8, host string, readBack bool) error

to socks5 cmd socks cmd addrtype socks type 0x01 0x03 0x04 read Back

func UdpHeadDecode

func UdpHeadDecode(data []byte) (*net.UDPAddr, int, error)

socks 5 udp header

func UdpHeadEncode

func UdpHeadEncode(addr *net.UDPAddr) []byte

func UdpProxyRes

func UdpProxyRes(clientConn net.Conn, udpAddr *net.UDPAddr) error

udp req res

Types

This section is empty.

Jump to

Keyboard shortcuts

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