network

package
v0.0.0-...-c9cf022 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Socks5AtypIP4    = 1
	Socks5AtypDomain = 3
	Socks5AtypIP6    = 4
)
View Source
const (
	NoAuth = uint8(0)

	UserPassAuth = uint8(2)
)

Variables

This section is empty.

Functions

func Sock5GetRequest

func Sock5GetRequest(conn io.ReadWriter) (rawaddr []byte, host string, err error)

func Sock5Handshake

func Sock5Handshake(conn *net.TCPConn, timeoutms int, username string, password string) (err error)

func Sock5HandshakeBy

func Sock5HandshakeBy(conn io.ReadWriter, username string, password string) (err error)

func Sock5SetRequest

func Sock5SetRequest(conn *net.TCPConn, host string, port int, timeoutms int) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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