Documentation ¶
Index ¶
- Constants
- func EncodeRequest(request Request, buffer *buf.Buffer)
- 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) 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 EncodeRequest ¶ added in v1.3.0
func ReadResponse ¶
func RequestLen ¶ added in v1.3.0
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 v1.3.0
func (*Conn) NeedHandshake ¶
func (*Conn) ReaderReplaceable ¶ added in v1.3.0
func (*Conn) WriteVectorised ¶ added in v1.3.0
func (*Conn) WriterReplaceable ¶ added in v1.3.0
type Handler ¶
type Handler interface { N.TCPConnectionHandler N.UDPConnectionHandler E.Handler }
type PacketConn ¶
func (*PacketConn) FrontHeadroom ¶
func (c *PacketConn) FrontHeadroom() int
func (*PacketConn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (c *PacketConn) NeedAdditionalReadDeadline() bool
func (*PacketConn) Upstream ¶
func (c *PacketConn) Upstream() any
func (*PacketConn) WritePacket ¶
type Service ¶
type Service[T comparable] struct { // contains filtered or unexported fields }
func NewService ¶
func NewService[T comparable](logger logger.Logger, handler Handler) *Service[T]
func (*Service[T]) NewConnection ¶
func (*Service[T]) UpdateUsers ¶
type VisionConn ¶
func NewVisionConn ¶
func (*VisionConn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (c *VisionConn) NeedAdditionalReadDeadline() bool
func (*VisionConn) Upstream ¶
func (c *VisionConn) Upstream() any
Click to show internal directories.
Click to hide internal directories.