Expand description
Sequence-number generation, starting from a random offset as the RFC requires.
Structs§
- Source
Sequence - 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