sniff

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: GPL-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainNameQuery

func DomainNameQuery(ctx context.Context, packet []byte) (*adapter.InboundContext, error)

func HTTPHost

func HTTPHost(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)

func PeekPacket

func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (*adapter.InboundContext, error)

func PeekStream

func PeekStream(ctx context.Context, conn net.Conn, buffer *buf.Buffer, timeout time.Duration, sniffers ...StreamSniffer) (*adapter.InboundContext, error)

func QUICClientHello

func QUICClientHello(ctx context.Context, packet []byte) (*adapter.InboundContext, error)

func STUNMessage

func STUNMessage(ctx context.Context, packet []byte) (*adapter.InboundContext, error)

func Skip added in v1.9.5

func Skip(metadata adapter.InboundContext) bool

func StreamDomainNameQuery

func StreamDomainNameQuery(readCtx context.Context, reader io.Reader) (*adapter.InboundContext, error)

func TLSClientHello

func TLSClientHello(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)

Types

type PacketSniffer

type PacketSniffer = func(ctx context.Context, packet []byte) (*adapter.InboundContext, error)

type StreamSniffer

type StreamSniffer = func(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL