Documentation ¶
Index ¶
- func HandleStreamDNSRequest(ctx context.Context, router adapter.Router, conn net.Conn, ...) error
- func NewDNSPacketConnection(ctx context.Context, router adapter.Router, conn N.PacketConn, ...) error
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterOutbound(registry *outbound.Registry)
- type Outbound
- func (d *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (d *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (d *Outbound) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (d *Outbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleStreamDNSRequest ¶
func NewDNSPacketConnection ¶
func NewDNSPacketConnection(ctx context.Context, router adapter.Router, conn N.PacketConn, cachedPackets []*N.PacketBuffer, metadata adapter.InboundContext) error
func NewOutbound ¶
func RegisterOutbound ¶
Types ¶
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) ListenPacket ¶
func (*Outbound) NewConnection ¶
func (d *Outbound) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
Deprecated
func (*Outbound) NewPacketConnection ¶
func (d *Outbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Deprecated
Click to show internal directories.
Click to hide internal directories.