Documentation
¶
Index ¶
- type Client
- func (h *Client) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
- func (h *Client) HandlePacketConn(ctx context.Context, dst net.Destination, pc udp.PacketReaderWriter) error
- func (c *Client) ListenPacket(ctx context.Context, dst net.Destination) (udp.UdpConn, error)
- func (c *Client) ProxyDial(ctx context.Context, dst net.Destination, initialData buf.MultiBuffer) (i.FlowConn, error)
- type ClientSettings
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 ¶
type ClientSettings ¶
type ClientSettings struct {
ServerPicker protocol.ServerPicker
Dialer i.Dialer
}
Click to show internal directories.
Click to hide internal directories.