socks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address []byte

Address is a SOCKS address

func ExtractAddress

func ExtractAddress(packet []byte) (socksAddress Address, err error)

ExtractAddress extracts a SOCKS address from the beginning of a packet

func Handshake

func Handshake(readWriter io.ReadWriter) (targetAddress Address, err error)

Handshake fast-tracks SOCKS initialization to get target address to connect.

func ParseAddress

func ParseAddress(remoteAddress net.Addr) (socksAddress Address, err error)

ParseAddress parses the SOCKS address from a network address

func ReadAddress

func ReadAddress(reader io.Reader) (socksAddress Address, err error)

ReadAddress reads bytes from the reader to get a Socks address

func (Address) String

func (a Address) String() string

String serializes a SOCKS address to a string

Jump to

Keyboard shortcuts

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