socks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_CONNECT = iota + 1
	CMD_BIND
	CMD_UDP_ASSOCIATE
)
View Source
const (
	ATYP_IPV4 = iota + 1

	ATYP_DOMAINNAME
	ATYP_IPV6
)
View Source
const (
	REP_SUCC = iota
	REP_GENERAL_SERVER_FAILURE
	REP_CONNECTION_NOT_ALLOWED
	REP_NETWORK_UNREACHABLE
	REP_HOST_UNREACHABLE
	REP_CONNECTION_REFUSED
	REP_TTL_EXPIRED
	REP_COMMAND_NOT_SUPPORTED
	REP_ADDRESS_TYPE_NOT_SUPPORTED
	REP_UNASSIGNED_START
)
View Source
const HANDSHAKE_TIMEOUT = 8
View Source
const VER = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Reply

type Reply struct {
	VER, REP, ATYP byte
	BND_ADDR       []byte
	BND_PORT       [2]byte
}

type Request

type Request struct {
	VER, CMD, ATYP byte
	DST_ADDR       []byte
	DST_PORT       [2]byte
}

type Server

type Server struct{}

func (*Server) Serve

func (this *Server) Serve(c net.Conn) error

Jump to

Keyboard shortcuts

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