outbound

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRejectQuic = errors.New("XTLS rejected QUIC traffic")

Functions

This section is empty.

Types

type ClientSettings

type ClientSettings struct {
	Address        net.Address
	ServerPicker   i.PortSelector
	Account        *vless.MemoryAccount
	TimeoutSetting i.TimeoutSetting
	Dialer         i.Dialer
}

type Handler

type Handler struct {
	ClientSettings
}

Handler is an outbound connection handler for VLess protocol.

func New

func New(settings ClientSettings) *Handler

New creates a new VLess outbound handler.

func (*Handler) HandleFlow

func (h *Handler) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error

func (*Handler) HandlePacketConn

func (h *Handler) HandlePacketConn(ctx context.Context, dst net.Destination, p udp.PacketReaderWriter) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL