Documentation ¶
Index ¶
- func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterInbound(registry *inbound.Registry)
- func RegisterOutbound(registry *outbound.Registry)
- type Inbound
- func (i *Inbound) Close() error
- func (i *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (i *Inbound) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (i *Inbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
- func (i *Inbound) Start(stage adapter.StartStage) error
- type Outbound
- func (h *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *Outbound) DialParallel(ctx context.Context, network string, destination M.Socksaddr, ...) (net.Conn, error)
- func (h *Outbound) DialParallelNetwork(ctx context.Context, network string, destination M.Socksaddr, ...) (net.Conn, error)
- func (h *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (h *Outbound) ListenSerialNetworkPacket(ctx context.Context, destination M.Socksaddr, ...) (net.PacketConn, netip.Addr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInbound ¶
func NewOutbound ¶
func RegisterInbound ¶
func RegisterOutbound ¶
Types ¶
type Inbound ¶
func (*Inbound) NewConnectionEx ¶
func (i *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Inbound) NewPacketConnectionEx ¶
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) DialParallel ¶
func (*Outbound) DialParallelNetwork ¶
func (*Outbound) ListenPacket ¶
func (*Outbound) ListenSerialNetworkPacket ¶
func (h *Outbound) ListenSerialNetworkPacket(ctx context.Context, destination M.Socksaddr, destinationAddresses []netip.Addr, networkStrategy *C.NetworkStrategy, networkType []C.InterfaceType, fallbackNetworkType []C.InterfaceType, fallbackDelay time.Duration) (net.PacketConn, netip.Addr, error)
Click to show internal directories.
Click to hide internal directories.