Documentation ¶
Index ¶
- func BitTorrent(_ context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func DomainNameQuery(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func HTTPHost(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (*adapter.InboundContext, error)
- func PeekStream(ctx context.Context, conn net.Conn, buffer *buf.Buffer, timeout time.Duration, ...) (*adapter.InboundContext, error)
- func QUICClientHello(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func STUNMessage(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func StreamDomainNameQuery(readCtx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func TLSClientHello(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func UDPTracker(_ context.Context, packet []byte) (*adapter.InboundContext, error)
- func UTP(_ context.Context, packet []byte) (*adapter.InboundContext, error)
- type PacketSniffer
- type StreamSniffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitTorrent ¶ added in v1.10.0
BitTorrent detects if the stream is a BitTorrent connection. For the BitTorrent protocol specification, see https://www.bittorrent.org/beps/bep_0003.html
func DomainNameQuery ¶
func PeekPacket ¶
func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (*adapter.InboundContext, error)
func PeekStream ¶
func QUICClientHello ¶
func STUNMessage ¶
func StreamDomainNameQuery ¶
func TLSClientHello ¶
func UDPTracker ¶ added in v1.10.0
UDPTracker detects if the packet is a UDP Tracker Protocol packet. For the UDP Tracker Protocol specification, see https://www.bittorrent.org/beps/bep_0015.html
Types ¶
type PacketSniffer ¶
type StreamSniffer ¶
Click to show internal directories.
Click to hide internal directories.