client

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientSettings
}

Client is an outbound connection handler for VMess protocol.

func NewClient

func NewClient(settings ClientSettings) *Client

New creates a new VMess outbound handler.

func (*Client) HandleFlow

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

Process implements proxy.Outbound.Process().

func (*Client) HandlePacketConn

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

func (*Client) ListenPacket

func (c *Client) ListenPacket(ctx context.Context, dst net.Destination) (udp.UdpConn, error)

func (*Client) ProxyDial

func (c *Client) ProxyDial(ctx context.Context,
	dst net.Destination, initialData buf.MultiBuffer) (i.FlowConn, error)

type ClientSettings

type ClientSettings struct {
	ServerPicker protocol.ServerPicker
	Dialer       i.Dialer
}

Jump to

Keyboard shortcuts

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