Skip to main content

Module sequence

Module sequence 

Source
Expand description

Sequence-number generation, starting from a random offset as the RFC requires.

Structs§

SourceSequence
The per-source sequence number state of RFC 3550 Appendix A.1 (init_seq, update_seq), with the loss arithmetic of Appendix A.3.

Constants§

MAX_DROPOUT
A forward jump smaller than this is loss, not a restart (RFC 3550 Appendix A.1).
MAX_MISORDER
A packet this far behind the highest sequence number, or less, is late or a duplicate (RFC 3550 Appendix A.1).
MIN_SEQUENTIAL
A source is valid once this many packets arrived in sequence (RFC 3550 Appendix A.1).

Traits§

Sequencer
Sequencer generates sequential sequence numbers for building RTP packets

Functions§

new_fixed_sequencer
NewFixedSequencer returns a new sequencer starting from a specific sequence number
new_random_sequencer
NewRandomSequencer returns a new sequencer starting from a random sequence number