Documentation ¶
Index ¶
- func ClientHandshake4(conn io.ReadWriter, command byte, destination M.Socksaddr, username string) (socks4.Response, error)
- func ClientHandshake5(conn io.ReadWriter, command byte, destination M.Socksaddr, username string, ...) (socks5.Response, error)
- func HandleConnection(ctx context.Context, conn net.Conn, authenticator auth.Authenticator, ...) error
- func HandleConnection0(ctx context.Context, conn net.Conn, version byte, ...) error
- type AssociatePacketConn
- func (c *AssociatePacketConn) Close() error
- func (c *AssociatePacketConn) FrontHeadroom() int
- func (c *AssociatePacketConn) Read(b []byte) (n int, err error)
- func (c *AssociatePacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *AssociatePacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (c *AssociatePacketConn) RemoteAddr() net.Addr
- func (c *AssociatePacketConn) Upstream() any
- func (c *AssociatePacketConn) Write(b []byte) (n int, err error)
- func (c *AssociatePacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- func (c *AssociatePacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type Client
- type Handler
- type VectorisedAssociatePacketConn
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientHandshake4 ¶
func ClientHandshake5 ¶
func HandleConnection ¶
Types ¶
type AssociatePacketConn ¶
type AssociatePacketConn struct { N.NetPacketConn // contains filtered or unexported fields }
func NewAssociateConn ¶
func NewAssociatePacketConn ¶
func NewAssociatePacketConn(conn net.PacketConn, remoteAddr M.Socksaddr, underlying net.Conn) *AssociatePacketConn
func (*AssociatePacketConn) Close ¶
func (c *AssociatePacketConn) Close() error
func (*AssociatePacketConn) FrontHeadroom ¶
func (c *AssociatePacketConn) FrontHeadroom() int
func (*AssociatePacketConn) ReadPacket ¶
func (*AssociatePacketConn) RemoteAddr ¶
func (c *AssociatePacketConn) RemoteAddr() net.Addr
func (*AssociatePacketConn) Upstream ¶
func (c *AssociatePacketConn) Upstream() any
func (*AssociatePacketConn) Write ¶
func (c *AssociatePacketConn) Write(b []byte) (n int, err error)
func (*AssociatePacketConn) WritePacket ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BindContext ¶
func (*Client) DialContext ¶
func (*Client) ListenPacket ¶
type Handler ¶
type Handler interface { N.TCPConnectionHandler N.UDPConnectionHandler }
type VectorisedAssociatePacketConn ¶
type VectorisedAssociatePacketConn struct { AssociatePacketConn N.VectorisedPacketWriter }
func NewVectorisedAssociateConn ¶
func NewVectorisedAssociateConn(conn net.Conn, writer N.VectorisedWriter, remoteAddr M.Socksaddr, underlying net.Conn) *VectorisedAssociatePacketConn
func NewVectorisedAssociatePacketConn ¶
func NewVectorisedAssociatePacketConn(conn net.PacketConn, writer N.VectorisedPacketWriter, remoteAddr M.Socksaddr, underlying net.Conn) *VectorisedAssociatePacketConn
func (*VectorisedAssociatePacketConn) FrontHeadroom ¶
func (c *VectorisedAssociatePacketConn) FrontHeadroom() int
func (*VectorisedAssociatePacketConn) WriteVectorisedPacket ¶
Click to show internal directories.
Click to hide internal directories.