Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::PacketCounter Class Reference

Computes number of packets in interval. More...

#include <packet_counter.h>

Public Member Functions

 PacketCounter ()
 Initialize. More...
 
uint64_t update (uint32_t begin, uint32_t end)
 Update and return packet counter. begin defines interval beginning. end defines interval end (exclusive). Packet counter is computes as the maximum seen distance from begin to end. If begin changes, the maximum is cleared. If end wraps around 32-bit boundary, this is taken into account. More...
 

Detailed Description

Computes number of packets in interval.

Definition at line 21 of file packet_counter.h.

Constructor & Destructor Documentation

◆ PacketCounter()

roc::rtcp::PacketCounter::PacketCounter ( )

Initialize.

Member Function Documentation

◆ update()

uint64_t roc::rtcp::PacketCounter::update ( uint32_t  begin,
uint32_t  end 
)

Update and return packet counter. begin defines interval beginning. end defines interval end (exclusive). Packet counter is computes as the maximum seen distance from begin to end. If begin changes, the maximum is cleared. If end wraps around 32-bit boundary, this is taken into account.


The documentation for this class was generated from the following file: