Documentation ¶
Index ¶
- Constants
- func NewDialer(nextDialer netproxy.Dialer, header protocol.Header) (netproxy.Dialer, error)
- type Dialer
- type TcpConn
- type UdpConn
- func (c *UdpConn) Cipher() *ciphers.StreamCipher
- func (c *UdpConn) Read(b []byte) (n int, err error)
- func (c *UdpConn) ReadFrom(b []byte) (n int, from netip.AddrPort, err error)
- func (c *UdpConn) ReadTransport(b []byte) (n int, err error)
- func (c *UdpConn) Write(b []byte) (n int, err error)
- func (c *UdpConn) WriteTo(p []byte, to string) (n int, err error)
- func (c *UdpConn) WriteTransport(p []byte) (n int, err error)
- type UdpTransportConn
Constants ¶
View Source
const (
TransportMagicAddr = "<TRANSPORT>"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialer ¶
type Dialer struct { EncryptMethod string EncryptPassword string // contains filtered or unexported fields }
func (*Dialer) DialTcpTransport ¶
func (*Dialer) DialUdpTransport ¶
func (d *Dialer) DialUdpTransport(magicNetwork string) (netproxy.PacketConn, error)
type TcpConn ¶
TcpConn the struct that override the netproxy.Conn methods
func NewTcpConn ¶
func NewTcpConn(c netproxy.Conn, cipher *ciphers.StreamCipher) *TcpConn
func (*TcpConn) Cipher ¶
func (c *TcpConn) Cipher() *ciphers.StreamCipher
type UdpConn ¶
type UdpConn struct { netproxy.PacketConn // contains filtered or unexported fields }
UdpConn the struct that override the netproxy.Conn methods
func NewUdpConn ¶
func NewUdpConn(c netproxy.PacketConn, cipher *ciphers.StreamCipher, defaultAddr socks.Addr, proxyAddr string) *UdpConn
func (*UdpConn) Cipher ¶
func (c *UdpConn) Cipher() *ciphers.StreamCipher
type UdpTransportConn ¶
type UdpTransportConn struct {
*UdpConn
}
Click to show internal directories.
Click to hide internal directories.