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) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (d *Outbound) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, ...)
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) NewConnectionEx ¶
func (d *Outbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Outbound) NewPacketConnectionEx ¶
func (d *Outbound) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
Click to show internal directories.
Click to hide internal directories.