socks5

package module
v0.0.0-...-bb6d4ad Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command int

A Command represents a SOCKS command. See: https://tools.ietf.org/html/rfc1928

const (
	// CmdConnect represents CONNECT command.
	CmdConnect Command = iota + 1

	// CmdBind represents BIND command.
	CmdBind

	// CmdUDPAssociate represents UDP ASSOCIATE command.
	CmdUDPAssociate
)

See: Page 5 in https://tools.ietf.org/html/rfc1928

func (Command) String

func (cmd Command) String() string

type Reply

type Reply int

A Reply represents a SOCKS command reply code. See: https://tools.ietf.org/html/rfc1928

const (
	// StatusSucceeded repserents successed to reply.
	StatusSucceeded Reply = iota
	// StatusGeneralServerFailure :
	StatusGeneralServerFailure
	// StatusNotAllowedByRuleSet :
	StatusNotAllowedByRuleSet
	// StatusNetworkUnreachable :
	StatusNetworkUnreachable
	// StatusHostUnreachable :
	StatusHostUnreachable
	// StatusConnectionRefused :
	StatusConnectionRefused
	// StatusTTLExpired :
	StatusTTLExpired
	// StatusCommandNotSupported :
	StatusCommandNotSupported
	// StatusAddrTypeNotSupported :
	StatusAddrTypeNotSupported
)

func (Reply) String

func (code Reply) String() string

Directories

Path Synopsis
examples
internal

Jump to

Keyboard shortcuts

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