proxy

package
v0.0.0-...-4a97a3c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProxyProtocolSupport

func CheckProxyProtocolSupport(proxy *url.URL) error

func NewTransportWrapper

func NewTransportWrapper(sc *SocksClient, innerNet transport.Net) transport.Net

Types

type SocksClient

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

func NewSocks5UDPClient

func NewSocks5UDPClient(addr *url.URL) SocksClient

func (*SocksClient) ListenPacket

func (sc *SocksClient) ListenPacket(network string, locAddr *net.UDPAddr) (transport.UDPConn, error)

func (*SocksClient) ResolveUDPAddr

func (sc *SocksClient) ResolveUDPAddr(network string, address string) (*net.UDPAddr, error)

type SocksConn

type SocksConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (SocksConn) Read

func (s SocksConn) Read(b []byte) (int, error)

func (SocksConn) ReadFrom

func (s SocksConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)

func (SocksConn) ReadFromUDP

func (s SocksConn) ReadFromUDP(b []byte) (n int, addr *net.UDPAddr, err error)

func (SocksConn) ReadMsgUDP

func (s SocksConn) ReadMsgUDP(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error)

func (SocksConn) RemoteAddr

func (s SocksConn) RemoteAddr() net.Addr

func (SocksConn) SetReadBuffer

func (s SocksConn) SetReadBuffer(bytes int) error

func (SocksConn) SetWriteBuffer

func (s SocksConn) SetWriteBuffer(bytes int) error

func (SocksConn) Write

func (s SocksConn) Write(b []byte) (int, error)

func (SocksConn) WriteMsgUDP

func (s SocksConn) WriteMsgUDP(b, oob []byte, addr *net.UDPAddr) (n, oobn int, err error)

func (SocksConn) WriteTo

func (s SocksConn) WriteTo(p []byte, addr net.Addr) (n int, err error)

func (SocksConn) WriteToUDP

func (s SocksConn) WriteToUDP(b []byte, addr *net.UDPAddr) (int, error)

Jump to

Keyboard shortcuts

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