Documentation ¶
Index ¶
- Constants
- func ReadResponse(reader io.Reader) error
- func WritePacketRequest(writer io.Writer, request Request, payload []byte) error
- func WriteRequest(writer io.Writer, request Request, payload []byte) error
- type Client
- func (c *Client) DialConn(conn net.Conn, destination M.Socksaddr) (*Conn, error)
- func (c *Client) DialEarlyConn(conn net.Conn, destination M.Socksaddr) *Conn
- func (c *Client) DialEarlyPacketConn(conn net.Conn, destination M.Socksaddr) *PacketConn
- func (c *Client) DialEarlyXUDPPacketConn(conn net.Conn, globalID [8]byte, destination M.Socksaddr) vmess.PacketConn
- func (c *Client) DialPacketConn(conn net.Conn, destination M.Socksaddr) (*PacketConn, error)
- func (c *Client) DialXUDPPacketConn(conn net.Conn, globalID [8]byte, destination M.Socksaddr) (vmess.PacketConn, error)
- type Conn
- type PacketConn
- func (c *PacketConn) FrontHeadroom() int
- func (c *PacketConn) InitializeReadWaiter(newBuffer func() *buf.Buffer)
- func (c *PacketConn) Read(b []byte) (n int, err error)
- func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *PacketConn) Upstream() any
- func (c *PacketConn) WaitReadPacket() (destination M.Socksaddr, err error)
- func (c *PacketConn) Write(b []byte) (n int, err error)
- func (c *PacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type Request
Constants ¶
View Source
const Version = 0
Variables ¶
This section is empty.
Functions ¶
func ReadResponse ¶
func WritePacketRequest ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DialEarlyConn ¶
func (*Client) DialEarlyPacketConn ¶
func (*Client) DialEarlyXUDPPacketConn ¶
func (*Client) DialPacketConn ¶
type PacketConn ¶
func (*PacketConn) FrontHeadroom ¶
func (c *PacketConn) FrontHeadroom() int
func (*PacketConn) InitializeReadWaiter ¶
func (c *PacketConn) InitializeReadWaiter(newBuffer func() *buf.Buffer)
func (*PacketConn) Upstream ¶
func (c *PacketConn) Upstream() any
func (*PacketConn) WaitReadPacket ¶
func (c *PacketConn) WaitReadPacket() (destination M.Socksaddr, err error)
func (*PacketConn) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.