gsocks5

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version byte = 5

	AddrIPv4       AddressType = 1
	AddrDomainName AddressType = 3 // domain name
	AddrIPv6       AddressType = 4

	CommandConnect      Command = 1
	CommandBind         Command = 2
	CommandUdpAssociate Command = 3
	CommandMin          Command = CommandConnect
	CommandMax          Command = CommandUdpAssociate

	ReplySuccess            Reply = 0
	ReplyFailed             Reply = 1
	ReplyUnreached          Reply = 3
	ReplyNoSuchHost         Reply = 4
	ReplyConnectDenied      Reply = 5
	ReplyTtlOver            Reply = 6
	ReplyUnsupportedCommand Reply = 7
	ReplyUnsupportedAddress Reply = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressType

type AddressType byte

func (AddressType) String

func (at AddressType) String() string

type Command

type Command byte

func (Command) String

func (cmd Command) String() string

type CommandReq

type CommandReq struct {
	Ver      byte
	Cmd      Command
	Reverse  byte
	AddrType AddressType
	DstAddr  string
	DstPort  uint16
}

type CommandResp

type CommandResp struct {
	Ver      byte
	Rep      Reply
	Reverse  byte
	AddrType AddressType
	DstAddr  string
	DstPort  uint16
}

type Reply

type Reply byte

func (Reply) String

func (r Reply) String() string

type VimsReq

type VimsReq struct {
	Ver      byte
	NMethods byte
	Methods  []byte // 1-255 bytes
}

type VimsResp

type VimsResp struct {
}

Jump to

Keyboard shortcuts

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