socks5

package
v10.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

type ClientConn struct {
	// contains filtered or unexported fields
}

func NewClientConn

func NewClientConn(conn *net.Conn, network, target string, timeout time.Duration, auth *socks5c.UsernamePassword, header []byte) *ClientConn

SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address with an optional username and password. See RFC 1928 and RFC 1929. target must be a canonical address with a host and port. network : tcp udp

func (*ClientConn) SendUDP

func (s *ClientConn) SendUDP(data []byte, addr string) (respData []byte, err error)

type Dialer

type Dialer struct {
	// contains filtered or unexported fields
}

func NewDialer

func NewDialer(auth *socks5c.UsernamePassword, timeout time.Duration) *Dialer

NewDialer returns a new Dialer that dials through the provided proxy server's network and address.

func (*Dialer) DialConn

func (d *Dialer) DialConn(conn *net.Conn, network, addr string) (err error)

Jump to

Keyboard shortcuts

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