addr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddrIPV4 ipv4 type
	IPV4 = Type(0x01)
	// AddrDomain domain type
	Domain = Type(0x03)
	// AddrIPV6 ipv6 type
	IPV6 = Type(0x04)
	// AddrUnknown unknown type
	Unknown = Type(0xff)
)

definded by socks5

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Type   Type
	IP     net.IP
	Port   uint16
	Domain string
}

Addr address

func (Addr) Bytes

func (a Addr) Bytes() []byte

Bytes compact address

func (Addr) String

func (a Addr) String() string

type Type

type Type byte

Type addr type

Jump to

Keyboard shortcuts

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