go_socks5

package module
v0.0.0-...-687d9fb Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxProtoSize = 262

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Addr     string
	Username string
	Password string
	PublicIP net.IP
	Debug    bool
}

func (*Client) Dial

func (c *Client) Dial(network, address string) (net.Conn, error)

func (*Client) DialTCP

func (c *Client) DialTCP(network string, laddr, raddr *net.TCPAddr) (*TCPConnection, error)

func (*Client) DialUDP

func (c *Client) DialUDP(network string, laddr, raddr *net.UDPAddr) (*UDPConnection, error)

func (*Client) Listen

func (c *Client) Listen(network, address string) (net.Listener, error)

func (*Client) ListenPacket

func (c *Client) ListenPacket(network string, address string) (net.PacketConn, error)

func (*Client) ListenTCP

func (c *Client) ListenTCP(network string, laddr *net.TCPAddr) (net.Listener, error)

func (*Client) ListenUDP

func (c *Client) ListenUDP(network string, laddr *net.UDPAddr) (net.PacketConn, error)

type Connection

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

type TCPConnection

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

func (*TCPConnection) Close

func (c *TCPConnection) Close() error

func (*TCPConnection) LocalAddr

func (c *TCPConnection) LocalAddr() net.Addr

func (*TCPConnection) Read

func (c *TCPConnection) Read(b []byte) (int, error)

func (*TCPConnection) RemoteAddr

func (c *TCPConnection) RemoteAddr() net.Addr

func (*TCPConnection) SetDeadline

func (c *TCPConnection) SetDeadline(t time.Time) error

func (*TCPConnection) SetReadDeadline

func (c *TCPConnection) SetReadDeadline(t time.Time) error

func (*TCPConnection) SetWriteDeadline

func (c *TCPConnection) SetWriteDeadline(t time.Time) error

func (*TCPConnection) Write

func (c *TCPConnection) Write(b []byte) (int, error)

type TCPListener

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

func (*TCPListener) Accept

func (c *TCPListener) Accept() (net.Conn, error)

func (*TCPListener) Addr

func (c *TCPListener) Addr() net.Addr

func (*TCPListener) Close

func (c *TCPListener) Close() error

type UDPConnection

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

func (*UDPConnection) Close

func (u *UDPConnection) Close() error

func (*UDPConnection) LocalAddr

func (u *UDPConnection) LocalAddr() net.Addr

func (*UDPConnection) Read

func (u *UDPConnection) Read(b []byte) (int, error)

func (*UDPConnection) ReadFrom

func (u *UDPConnection) ReadFrom(b []byte) (int, net.Addr, error)

func (*UDPConnection) RemoteAddr

func (u *UDPConnection) RemoteAddr() net.Addr

func (*UDPConnection) SetDeadline

func (u *UDPConnection) SetDeadline(t time.Time) error

func (*UDPConnection) SetReadDeadline

func (u *UDPConnection) SetReadDeadline(t time.Time) error

func (*UDPConnection) SetWriteDeadline

func (u *UDPConnection) SetWriteDeadline(t time.Time) error

func (*UDPConnection) Write

func (u *UDPConnection) Write(b []byte) (int, error)

func (*UDPConnection) WriteTo

func (u *UDPConnection) WriteTo(b []byte, addr net.Addr) (int, error)

Directories

Path Synopsis
cmd
udp

Jump to

Keyboard shortcuts

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