package replaydetector

Import Path
	github.com/pion/transport/v3/replaydetector (on go.dev)

Dependency Relation
	imports one package, and imported by 2 packages

Involved Source Files fixedbig.go Package replaydetector provides packet replay detection algorithm.
Package-Level Type Names (only one)
/* sort by: | */
ReplayDetector is the interface of sequence replay detector. Check returns true if given sequence number is not replayed. Call accept() to mark the packet is received properly. The return value of accept() indicates whether the accepted packet is has the latest observed sequence number. func New(windowSize uint, maxSeq uint64) ReplayDetector func WithWrap(windowSize uint, maxSeq uint64) ReplayDetector
Package-Level Functions (total 2)
New creates ReplayDetector. Created ReplayDetector doesn't allow wrapping. It can handle monotonically increasing sequence number up to full 64bit number. It is suitable for DTLS replay protection.
WithWrap creates ReplayDetector allowing sequence wrapping. This is suitable for short bit width counter like SRTP and SRTCP.