client

package
v0.3.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Connect CMD = 0x01
	Bind    CMD = 0x02
	Udp     CMD = 0x03

	IPv4   byte = 0x01
	Domain byte = 0x03
	IPv6   byte = 0x04
)

Variables

This section is empty.

Functions

func Dial

func Dial(host, port, user, password string) proxy.Proxy

func New

New returns a new Socks5 client

func ParseAddr

func ParseAddr(hostname proxy.Address) []byte

func ParseAddrWriter

func ParseAddrWriter(addr proxy.Address, buf io.Writer)

func ResolveAddr

func ResolveAddr(network string, r io.Reader) (_ proxy.Address, size int, err error)

Types

type CMD

type CMD byte

Jump to

Keyboard shortcuts

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