Documentation ¶
Index ¶
- Constants
- func EncodeRequest(request Request, buffer *buf.Buffer) error
- func ReadResponse(reader io.Reader) error
- func RequestLen(request Request) int
- func WritePacketRequest(writer io.Writer, request Request, payload []byte) error
- func WriteRequest(writer io.Writer, request Request, payload []byte) error
- type Addons
- type Client
- func (c *Client) DialConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error)
- func (c *Client) DialEarlyConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error)
- func (c *Client) DialEarlyPacketConn(conn net.Conn, destination M.Socksaddr) (*PacketConn, error)
- func (c *Client) DialEarlyXUDPPacketConn(conn net.Conn, destination M.Socksaddr) (vmess.PacketConn, error)
- func (c *Client) DialPacketConn(conn net.Conn, destination M.Socksaddr) (*PacketConn, error)
- func (c *Client) DialXUDPPacketConn(conn net.Conn, destination M.Socksaddr) (vmess.PacketConn, error)
- type Conn
- func (c *Conn) FrontHeadroom() int
- func (c *Conn) NeedAdditionalReadDeadline() bool
- func (c *Conn) NeedHandshake() bool
- func (c *Conn) Read(b []byte) (n int, err error)
- func (c *Conn) ReadBuffer(buffer *buf.Buffer) error
- func (c *Conn) ReaderReplaceable() bool
- func (c *Conn) Upstream() any
- func (c *Conn) Write(b []byte) (n int, err error)
- func (c *Conn) WriteBuffer(buffer *buf.Buffer) error
- func (c *Conn) WriteVectorised(buffers []*buf.Buffer) error
- func (c *Conn) WriterReplaceable() bool
- type Handler
- type PacketConn
- func (c *PacketConn) FrontHeadroom() int
- func (c *PacketConn) NeedAdditionalReadDeadline() bool
- 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) 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
- type Service
- type VisionConn
Constants ¶
View Source
const ( Version = 0 FlowVision = "xtls-rprx-vision" )
Variables ¶
This section is empty.
Functions ¶
func ReadResponse ¶
func RequestLen ¶ added in v0.1.9
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 Conn ¶
type Conn struct { N.ExtendedConn // contains filtered or unexported fields }
func (*Conn) FrontHeadroom ¶ added in v0.1.9
func (*Conn) NeedAdditionalReadDeadline ¶ added in v0.1.12
func (*Conn) NeedHandshake ¶ added in v0.1.9
func (*Conn) ReaderReplaceable ¶ added in v0.1.9
func (*Conn) WriteVectorised ¶ added in v0.1.9
func (*Conn) WriterReplaceable ¶ added in v0.1.9
type Handler ¶ added in v0.1.9
type Handler interface { N.TCPConnectionHandler N.UDPConnectionHandler E.Handler }
type PacketConn ¶
func (*PacketConn) FrontHeadroom ¶
func (c *PacketConn) FrontHeadroom() int
func (*PacketConn) NeedAdditionalReadDeadline ¶ added in v0.1.9
func (c *PacketConn) NeedAdditionalReadDeadline() bool
func (*PacketConn) Upstream ¶
func (c *PacketConn) Upstream() any
func (*PacketConn) WritePacket ¶
type Service ¶ added in v0.1.9
type Service[T comparable] struct { // contains filtered or unexported fields }
func NewService ¶ added in v0.1.9
func NewService[T comparable](logger logger.Logger, handler Handler) *Service[T]
func (*Service[T]) NewConnection ¶ added in v0.1.9
func (*Service[T]) UpdateUsers ¶ added in v0.1.9
type VisionConn ¶ added in v0.1.9
func NewVisionConn ¶ added in v0.1.9
func (*VisionConn) NeedAdditionalReadDeadline ¶ added in v0.1.9
func (c *VisionConn) NeedAdditionalReadDeadline() bool
func (*VisionConn) Upstream ¶ added in v0.1.9
func (c *VisionConn) Upstream() any
Click to show internal directories.
Click to hide internal directories.