Documentation ¶
Index ¶
- Constants
- func ReadResponse(reader io.Reader) error
- func UvarintLen(value uint64) 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) (*Conn, error)
- func (c *Client) DialEarlyConn(conn net.Conn, destination M.Socksaddr) (*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
- 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 UvarintLen ¶
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 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.