live
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
RTPReceptionStats Class Reference

#include <RTPSource.hh>

Public Member Functions

u_int32_t SSRC () const
 
unsigned numPacketsReceivedSinceLastReset () const
 
unsigned totNumPacketsReceived () const
 
double totNumKBytesReceived () const
 
unsigned totNumPacketsExpected () const
 
unsigned baseExtSeqNumReceived () const
 
unsigned lastResetExtSeqNumReceived () const
 
unsigned highestExtSeqNumReceived () const
 
unsigned jitter () const
 
unsigned lastReceivedSR_NTPmsw () const
 
unsigned lastReceivedSR_NTPlsw () const
 
struct timeval const & lastReceivedSR_time () const
 
unsigned minInterPacketGapUS () const
 
unsigned maxInterPacketGapUS () const
 
struct timeval const & totalInterPacketGaps () const
 

Protected Member Functions

 RTPReceptionStats (u_int32_t SSRC, u_int16_t initialSeqNum)
 
 RTPReceptionStats (u_int32_t SSRC)
 
virtual ~RTPReceptionStats ()
 

Protected Attributes

u_int32_t fSSRC
 
unsigned fNumPacketsReceivedSinceLastReset
 
unsigned fTotNumPacketsReceived
 
u_int32_t fTotBytesReceived_hi
 
u_int32_t fTotBytesReceived_lo
 
Boolean fHaveSeenInitialSequenceNumber
 
unsigned fBaseExtSeqNumReceived
 
unsigned fLastResetExtSeqNumReceived
 
unsigned fHighestExtSeqNumReceived
 
int fLastTransit
 
u_int32_t fPreviousPacketRTPTimestamp
 
double fJitter
 
unsigned fLastReceivedSR_NTPmsw
 
unsigned fLastReceivedSR_NTPlsw
 
struct timeval fLastReceivedSR_time
 
struct timeval fLastPacketReceptionTime
 
unsigned fMinInterPacketGapUS
 
unsigned fMaxInterPacketGapUS
 
struct timeval fTotalInterPacketGaps
 

Private Member Functions

void noteIncomingPacket (u_int16_t seqNum, u_int32_t rtpTimestamp, unsigned timestampFrequency, Boolean useForJitterCalculation, struct timeval &resultPresentationTime, Boolean &resultHasBeenSyncedUsingRTCP, unsigned packetSize)
 
void noteIncomingSR (u_int32_t ntpTimestampMSW, u_int32_t ntpTimestampLSW, u_int32_t rtpTimestamp)
 
void init (u_int32_t SSRC)
 
void initSeqNum (u_int16_t initialSeqNum)
 
void reset ()
 

Private Attributes

Boolean fHasBeenSynchronized
 
u_int32_t fSyncTimestamp
 
struct timeval fSyncTime
 

Friends

class RTPReceptionStatsDB
 

Detailed Description

Definition at line 184 of file RTPSource.hh.

Constructor & Destructor Documentation

◆ RTPReceptionStats() [1/2]

RTPReceptionStats::RTPReceptionStats ( u_int32_t  SSRC,
u_int16_t  initialSeqNum 
)
protected

◆ RTPReceptionStats() [2/2]

RTPReceptionStats::RTPReceptionStats ( u_int32_t  SSRC)
protected

◆ ~RTPReceptionStats()

virtual RTPReceptionStats::~RTPReceptionStats ( )
protectedvirtual

Member Function Documentation

◆ baseExtSeqNumReceived()

unsigned RTPReceptionStats::baseExtSeqNumReceived ( ) const
inline

Definition at line 197 of file RTPSource.hh.

197{ return fBaseExtSeqNumReceived; }
unsigned fBaseExtSeqNumReceived
Definition: RTPSource.hh:247

References fBaseExtSeqNumReceived.

◆ highestExtSeqNumReceived()

unsigned RTPReceptionStats::highestExtSeqNumReceived ( ) const
inline

Definition at line 201 of file RTPSource.hh.

201 {
203 }
unsigned fHighestExtSeqNumReceived
Definition: RTPSource.hh:249

References fHighestExtSeqNumReceived.

◆ init()

void RTPReceptionStats::init ( u_int32_t  SSRC)
private

◆ initSeqNum()

void RTPReceptionStats::initSeqNum ( u_int16_t  initialSeqNum)
private

◆ jitter()

unsigned RTPReceptionStats::jitter ( ) const

◆ lastReceivedSR_NTPlsw()

unsigned RTPReceptionStats::lastReceivedSR_NTPlsw ( ) const
inline

Definition at line 208 of file RTPSource.hh.

208{ return fLastReceivedSR_NTPlsw; }
unsigned fLastReceivedSR_NTPlsw
Definition: RTPSource.hh:255

References fLastReceivedSR_NTPlsw.

◆ lastReceivedSR_NTPmsw()

unsigned RTPReceptionStats::lastReceivedSR_NTPmsw ( ) const
inline

Definition at line 207 of file RTPSource.hh.

207{ return fLastReceivedSR_NTPmsw; }
unsigned fLastReceivedSR_NTPmsw
Definition: RTPSource.hh:254

References fLastReceivedSR_NTPmsw.

◆ lastReceivedSR_time()

struct timeval const & RTPReceptionStats::lastReceivedSR_time ( ) const
inline

Definition at line 209 of file RTPSource.hh.

209 {
211 }
struct timeval fLastReceivedSR_time
Definition: RTPSource.hh:256

References fLastReceivedSR_time.

◆ lastResetExtSeqNumReceived()

unsigned RTPReceptionStats::lastResetExtSeqNumReceived ( ) const
inline

Definition at line 198 of file RTPSource.hh.

198 {
200 }
unsigned fLastResetExtSeqNumReceived
Definition: RTPSource.hh:248

References fLastResetExtSeqNumReceived.

◆ maxInterPacketGapUS()

unsigned RTPReceptionStats::maxInterPacketGapUS ( ) const
inline

Definition at line 214 of file RTPSource.hh.

214{ return fMaxInterPacketGapUS; }
unsigned fMaxInterPacketGapUS
Definition: RTPSource.hh:258

References fMaxInterPacketGapUS.

◆ minInterPacketGapUS()

unsigned RTPReceptionStats::minInterPacketGapUS ( ) const
inline

Definition at line 213 of file RTPSource.hh.

213{ return fMinInterPacketGapUS; }
unsigned fMinInterPacketGapUS
Definition: RTPSource.hh:258

References fMinInterPacketGapUS.

◆ noteIncomingPacket()

void RTPReceptionStats::noteIncomingPacket ( u_int16_t  seqNum,
u_int32_t  rtpTimestamp,
unsigned  timestampFrequency,
Boolean  useForJitterCalculation,
struct timeval &  resultPresentationTime,
Boolean resultHasBeenSyncedUsingRTCP,
unsigned  packetSize 
)
private

◆ noteIncomingSR()

void RTPReceptionStats::noteIncomingSR ( u_int32_t  ntpTimestampMSW,
u_int32_t  ntpTimestampLSW,
u_int32_t  rtpTimestamp 
)
private

◆ numPacketsReceivedSinceLastReset()

unsigned RTPReceptionStats::numPacketsReceivedSinceLastReset ( ) const
inline

Definition at line 187 of file RTPSource.hh.

187 {
189 }
unsigned fNumPacketsReceivedSinceLastReset
Definition: RTPSource.hh:243

References fNumPacketsReceivedSinceLastReset.

◆ reset()

void RTPReceptionStats::reset ( )
private

◆ SSRC()

u_int32_t RTPReceptionStats::SSRC ( ) const
inline

Definition at line 186 of file RTPSource.hh.

186{ return fSSRC; }
u_int32_t fSSRC
Definition: RTPSource.hh:242

References fSSRC.

◆ totalInterPacketGaps()

struct timeval const & RTPReceptionStats::totalInterPacketGaps ( ) const
inline

Definition at line 215 of file RTPSource.hh.

215 {
217 }
struct timeval fTotalInterPacketGaps
Definition: RTPSource.hh:259

References fTotalInterPacketGaps.

◆ totNumKBytesReceived()

double RTPReceptionStats::totNumKBytesReceived ( ) const

◆ totNumPacketsExpected()

unsigned RTPReceptionStats::totNumPacketsExpected ( ) const
inline

Definition at line 193 of file RTPSource.hh.

193 {
195 }

References fBaseExtSeqNumReceived, and fHighestExtSeqNumReceived.

◆ totNumPacketsReceived()

unsigned RTPReceptionStats::totNumPacketsReceived ( ) const
inline

Definition at line 190 of file RTPSource.hh.

190{ return fTotNumPacketsReceived; }
unsigned fTotNumPacketsReceived
Definition: RTPSource.hh:244

References fTotNumPacketsReceived.

Friends And Related Function Documentation

◆ RTPReceptionStatsDB

friend class RTPReceptionStatsDB
friend

Definition at line 221 of file RTPSource.hh.

Field Documentation

◆ fBaseExtSeqNumReceived

unsigned RTPReceptionStats::fBaseExtSeqNumReceived
protected

Definition at line 247 of file RTPSource.hh.

Referenced by baseExtSeqNumReceived(), and totNumPacketsExpected().

◆ fHasBeenSynchronized

Boolean RTPReceptionStats::fHasBeenSynchronized
private

Definition at line 263 of file RTPSource.hh.

◆ fHaveSeenInitialSequenceNumber

Boolean RTPReceptionStats::fHaveSeenInitialSequenceNumber
protected

Definition at line 246 of file RTPSource.hh.

◆ fHighestExtSeqNumReceived

unsigned RTPReceptionStats::fHighestExtSeqNumReceived
protected

Definition at line 249 of file RTPSource.hh.

Referenced by highestExtSeqNumReceived(), and totNumPacketsExpected().

◆ fJitter

double RTPReceptionStats::fJitter
protected

Definition at line 252 of file RTPSource.hh.

◆ fLastPacketReceptionTime

struct timeval RTPReceptionStats::fLastPacketReceptionTime
protected

Definition at line 257 of file RTPSource.hh.

◆ fLastReceivedSR_NTPlsw

unsigned RTPReceptionStats::fLastReceivedSR_NTPlsw
protected

Definition at line 255 of file RTPSource.hh.

Referenced by lastReceivedSR_NTPlsw().

◆ fLastReceivedSR_NTPmsw

unsigned RTPReceptionStats::fLastReceivedSR_NTPmsw
protected

Definition at line 254 of file RTPSource.hh.

Referenced by lastReceivedSR_NTPmsw().

◆ fLastReceivedSR_time

struct timeval RTPReceptionStats::fLastReceivedSR_time
protected

Definition at line 256 of file RTPSource.hh.

Referenced by lastReceivedSR_time().

◆ fLastResetExtSeqNumReceived

unsigned RTPReceptionStats::fLastResetExtSeqNumReceived
protected

Definition at line 248 of file RTPSource.hh.

Referenced by lastResetExtSeqNumReceived().

◆ fLastTransit

int RTPReceptionStats::fLastTransit
protected

Definition at line 250 of file RTPSource.hh.

◆ fMaxInterPacketGapUS

unsigned RTPReceptionStats::fMaxInterPacketGapUS
protected

Definition at line 258 of file RTPSource.hh.

Referenced by maxInterPacketGapUS().

◆ fMinInterPacketGapUS

unsigned RTPReceptionStats::fMinInterPacketGapUS
protected

Definition at line 258 of file RTPSource.hh.

Referenced by minInterPacketGapUS().

◆ fNumPacketsReceivedSinceLastReset

unsigned RTPReceptionStats::fNumPacketsReceivedSinceLastReset
protected

Definition at line 243 of file RTPSource.hh.

Referenced by numPacketsReceivedSinceLastReset().

◆ fPreviousPacketRTPTimestamp

u_int32_t RTPReceptionStats::fPreviousPacketRTPTimestamp
protected

Definition at line 251 of file RTPSource.hh.

◆ fSSRC

u_int32_t RTPReceptionStats::fSSRC
protected

Definition at line 242 of file RTPSource.hh.

Referenced by SSRC().

◆ fSyncTime

struct timeval RTPReceptionStats::fSyncTime
private

Definition at line 265 of file RTPSource.hh.

◆ fSyncTimestamp

u_int32_t RTPReceptionStats::fSyncTimestamp
private

Definition at line 264 of file RTPSource.hh.

◆ fTotalInterPacketGaps

struct timeval RTPReceptionStats::fTotalInterPacketGaps
protected

Definition at line 259 of file RTPSource.hh.

Referenced by totalInterPacketGaps().

◆ fTotBytesReceived_hi

u_int32_t RTPReceptionStats::fTotBytesReceived_hi
protected

Definition at line 245 of file RTPSource.hh.

◆ fTotBytesReceived_lo

u_int32_t RTPReceptionStats::fTotBytesReceived_lo
protected

Definition at line 245 of file RTPSource.hh.

◆ fTotNumPacketsReceived

unsigned RTPReceptionStats::fTotNumPacketsReceived
protected

Definition at line 244 of file RTPSource.hh.

Referenced by totNumPacketsReceived().


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