Documentation ¶
Index ¶
- Variables
- func BitTorrent(_ context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func DTLSRecord(ctx context.Context, metadata *adapter.InboundContext, packet []byte) error
- func DomainNameQuery(ctx context.Context, metadata *adapter.InboundContext, packet []byte) error
- func HTTPHost(_ context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func PeekPacket(ctx context.Context, metadata *adapter.InboundContext, packet []byte, ...) error
- func PeekStream(ctx context.Context, metadata *adapter.InboundContext, conn net.Conn, ...) error
- func QUICClientHello(ctx context.Context, metadata *adapter.InboundContext, packet []byte) error
- func RDP(_ context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func SSH(_ context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func STUNMessage(_ context.Context, metadata *adapter.InboundContext, packet []byte) error
- func Skip(metadata adapter.InboundContext) bool
- func StreamDomainNameQuery(readCtx context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func TLSClientHello(ctx context.Context, metadata *adapter.InboundContext, reader io.Reader) error
- func UDPTracker(_ context.Context, metadata *adapter.InboundContext, packet []byte) error
- func UTP(_ context.Context, metadata *adapter.InboundContext, packet []byte) error
- type PacketSniffer
- type StreamSniffer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientHelloFragmented = E.New("need more packet for chromium QUIC connection")
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 DTLSRecord ¶ added in v1.10.0
func DomainNameQuery ¶
func PeekPacket ¶
func PeekPacket(ctx context.Context, metadata *adapter.InboundContext, packet []byte, sniffers ...PacketSniffer) error
func PeekStream ¶
func QUICClientHello ¶
func STUNMessage ¶
func Skip ¶ added in v1.9.5
func Skip(metadata adapter.InboundContext) bool
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.