Documentation ¶
Index ¶
- func CheckProxyProtocolSupport(proxy *url.URL) error
- func NewTransportWrapper(sc *SocksClient, innerNet transport.Net) transport.Net
- type SocksClient
- type SocksConn
- func (s SocksConn) Read(b []byte) (int, error)
- func (s SocksConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (s SocksConn) ReadFromUDP(b []byte) (n int, addr *net.UDPAddr, err error)
- func (s SocksConn) ReadMsgUDP(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error)
- func (s SocksConn) RemoteAddr() net.Addr
- func (s SocksConn) SetReadBuffer(bytes int) error
- func (s SocksConn) SetWriteBuffer(bytes int) error
- func (s SocksConn) Write(b []byte) (int, error)
- func (s SocksConn) WriteMsgUDP(b, oob []byte, addr *net.UDPAddr) (n, oobn int, err error)
- func (s SocksConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- func (s SocksConn) WriteToUDP(b []byte, addr *net.UDPAddr) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.