Versions in this module Expand all Collapse all v26 v26.1.15 Jan 14, 2026 v26.1.14 Jan 13, 2026 Changes in this version + const CommandPaddingContinue + const CommandPaddingDirect + const CommandPaddingEnd + const TlsHandshakeTypeClientHello + const TlsHandshakeTypeServerHello + var Tls13CipherSuiteDic = map[uint16]string + var Tls13SupportedVersions = []byte + var TlsApplicationDataStart = []byte + var TlsClientHandShakeStart = []byte + var TlsServerHandShakeStart = []byte + func CopyRawConnIfExist(ctx context.Context, readerConn net.Conn, writerConn net.Conn, ...) error + func IsCompleteRecord(buffer buf.MultiBuffer) bool + func IsRAWTransportWithoutSecurity(conn stat.Connection) bool + func ReshapeMultiBuffer(ctx context.Context, buffer buf.MultiBuffer) buf.MultiBuffer + func UnwrapRawConn(conn net.Conn) (net.Conn, stats.Counter, stats.Counter) + func XtlsFilterTls(buffer buf.MultiBuffer, trafficState *TrafficState, ctx context.Context) + func XtlsPadding(b *buf.Buffer, command byte, userUUID *[]byte, longPadding bool, ...) *buf.Buffer + func XtlsUnpadding(b *buf.Buffer, s *TrafficState, isUplink bool, ctx context.Context) *buf.Buffer + type GetInbound interface + GetInbound func() Inbound + type GetOutbound interface + GetOutbound func() Outbound + type Inbound interface + Network func() []net.Network + Process func(context.Context, net.Network, stat.Connection, routing.Dispatcher) error + type InboundState struct + CurrentCommand int + DownlinkWriterDirectCopy bool + IsPadding bool + RemainingCommand int32 + RemainingContent int32 + RemainingPadding int32 + UplinkReaderDirectCopy bool + WithinPaddingBuffers bool + type Outbound interface + Process func(context.Context, *transport.Link, internet.Dialer) error + type OutboundState struct + CurrentCommand int + DownlinkReaderDirectCopy bool + IsPadding bool + RemainingCommand int32 + RemainingContent int32 + RemainingPadding int32 + UplinkWriterDirectCopy bool + WithinPaddingBuffers bool + type TrafficState struct + Cipher uint16 + EnableXtls bool + Inbound InboundState + IsTLS bool + IsTLS12orAbove bool + NumberOfPacketToFilter int + Outbound OutboundState + RemainingServerHello int32 + UserUUID []byte + func NewTrafficState(userUUID []byte) *TrafficState + type UserManager interface + AddUser func(context.Context, *protocol.MemoryUser) error + GetUser func(context.Context, string) *protocol.MemoryUser + GetUsers func(context.Context) []*protocol.MemoryUser + GetUsersCount func(context.Context) int64 + RemoveUser func(context.Context, string) error + type VisionReader struct + func NewVisionReader(reader buf.Reader, trafficState *TrafficState, isUplink bool, ...) *VisionReader + func (w *VisionReader) ReadMultiBuffer() (buf.MultiBuffer, error) + type VisionWriter struct + func NewVisionWriter(writer buf.Writer, trafficState *TrafficState, isUplink bool, ...) *VisionWriter + func (w *VisionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error Other modules containing this package github.com/xmplusdev/xray-core github.com/xmplusdev/xray-core/v24 github.com/xmplusdev/xray-core/v25