Documentation ¶
Overview ¶
Package vision implements VLESS flow `xtls-rprx-vision` introduced by Xray-core.
Index ¶
- Constants
- Variables
- func ApplyPadding(buffer *buf.Buffer, command byte, userUUID *uuid.UUID, paddingTLS bool)
- func ReshapeBuffer(buffer *buf.Buffer) *buf.Buffer
- func WriteWithPadding(buffer *buf.Buffer, p []byte, command byte, userUUID *uuid.UUID, ...)
- type Conn
- func (vc *Conn) FilterTLS(buffer []byte) (index int)
- func (vc *Conn) FrontHeadroom() int
- func (vc *Conn) NeedHandshake() bool
- func (vc *Conn) Read(b []byte) (int, error)
- func (vc *Conn) ReadBuffer(buffer *buf.Buffer) error
- func (vc *Conn) ReaderPossiblyReplaceable() bool
- func (vc *Conn) ReaderReplaceable() bool
- func (vc *Conn) RearHeadroom() int
- func (vc *Conn) Upstream() any
- func (vc *Conn) Write(p []byte) (int, error)
- func (vc *Conn) WriteBuffer(buffer *buf.Buffer) (err error)
- func (vc *Conn) WriterPossiblyReplaceable() bool
- func (vc *Conn) WriterReplaceable() bool
Constants ¶
View Source
const (
PaddingHeaderLen = uuid.Size + 1 + 2 + 2 // =21
)
Variables ¶
View Source
var ErrNotTLS13 = errors.New("XTLS Vision based on TLS 1.3 outer connection")
Functions ¶
func ApplyPadding ¶
Types ¶
type Conn ¶
type Conn struct { net.Conn N.ExtendedReader N.ExtendedWriter // contains filtered or unexported fields }
func (*Conn) FrontHeadroom ¶
func (*Conn) NeedHandshake ¶
func (*Conn) ReaderPossiblyReplaceable ¶
func (*Conn) ReaderReplaceable ¶
func (*Conn) RearHeadroom ¶
func (*Conn) WriterPossiblyReplaceable ¶
func (*Conn) WriterReplaceable ¶
Click to show internal directories.
Click to hide internal directories.