Help us shape the future of Go! Take the 2026 Go Developer Survey

go_socks5

package module
v0.0.0-...-8fd9559 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT Imports: 7 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
	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) (*net.TCPConn, 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) ListenTCP

func (c *Client) ListenTCP(network string, laddr *net.TCPAddr) (*net.TCPListener, 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
}

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)

Jump to

Keyboard shortcuts

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