socks

package
v0.0.0-...-40f201c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CmdConnect      = 1
	CmdBind         = 2
	CmdUDPAssociate = 3
)
View Source
const (
	AtypIPv4       = 1
	AtypDomainName = 3
	AtypIPv6       = 4
)
View Source
const (
	ErrGeneralFailure       = Error(1)
	ErrConnectionNotAllowed = Error(2)
	ErrNetworkUnreachable   = Error(3)
	ErrHostUnreachable      = Error(4)
	ErrConnectionRefused    = Error(5)
	ErrTTLExpired           = Error(6)
	ErrCommandNotSupported  = Error(7)
	ErrAddressNotSupported  = Error(8)
	InfoUDPAssociate        = Error(9)
)
View Source
const MaxAddrLen = 1 + 1 + 255 + 2

Variables

View Source
var UDPEnabled = false

Functions

This section is empty.

Types

type Addr

type Addr []byte

func Handshake

func Handshake(rw io.ReadWriter) (Addr, error)

func ParseAddr

func ParseAddr(s string) Addr

func ReadAddr

func ReadAddr(r io.Reader) (Addr, error)

func SplitAddr

func SplitAddr(b []byte) Addr

func (Addr) String

func (a Addr) String() string

type Error

type Error byte

func (Error) Error

func (err Error) Error() string

Jump to

Keyboard shortcuts

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