#include <reports.h>
Public Member Functions | |
ReceptionReport () | |
ReceptionReport (const ReceptionReport &receptionReport) | |
virtual | ~ReceptionReport () |
ReceptionReport & | operator= (const ReceptionReport &receptionReport) |
virtual ReceptionReport * | dup () const |
virtual std::string | info () |
virtual void | dump (std::ostream &os) const |
virtual uint32 | getSSRC () |
virtual void | setSSRC (uint32 ssrc) |
virtual uint8 | getFractionLost () |
virtual void | setFractionLost (uint8 fractionLost) |
virtual int | getPacketsLostCumulative () |
virtual void | setPacketsLostCumulative (int packetLostCumulative) |
virtual uint32 | getSequenceNumber () |
virtual void | setSequenceNumber (uint32 sequenceNumber) |
virtual int | getJitter () |
virtual void | setJitter (int jitter) |
virtual int | getLastSR () |
virtual void | setLastSR (int lastSR) |
virtual int | getDelaySinceLastSR () |
virtual void | setDelaySinceLastSR (int delaySinceLastSR) |
Protected Attributes | |
uint32 | _ssrc |
uint8 | _fractionLost |
int | _packetsLostCumulative |
uint32 | _extendedHighestSequenceNumber |
int | _jitter |
int | _lastSR |
int | _delaySinceLastSR |
The class ReceptionReport represents an rtp receiver report stored in an RTPSenderReportPacket or RTPReceiverReport.
Definition at line 142 of file reports.h.
ReceptionReport::ReceptionReport | ( | ) |
Default constructor.
Definition at line 142 of file reports.cc.
Referenced by dup().
: cObject() { _ssrc = 0; _fractionLost = 0; _packetsLostCumulative = 0; _extendedHighestSequenceNumber = 0; _jitter = 0; _lastSR = 0; _delaySinceLastSR = 0; }
ReceptionReport::ReceptionReport | ( | const ReceptionReport & | receptionReport | ) |
Copy constructor..
Definition at line 154 of file reports.cc.
: cObject() { operator=(receptionReport); }
ReceptionReport::~ReceptionReport | ( | ) | [virtual] |
void ReceptionReport::dump | ( | std::ostream & | os | ) | const [virtual] |
Writes a longer info about this ReceptionReport into the given stream.
Definition at line 193 of file reports.cc.
Referenced by RTCPReceiverReportPacket::dump().
{ os << "ReceptionReport:" << endl; os << " ssrc = " << _ssrc << endl; os << " fractionLost = " << (int)_fractionLost << endl; os << " packetsLostCumulative = " << _packetsLostCumulative << endl; os << " extendedHighestSequenceNumber = " << _extendedHighestSequenceNumber << endl; os << " jitter = " << _jitter << endl; os << " lastSR = " << _lastSR << endl; os << " delaySinceLastSR = " << _delaySinceLastSR << endl; }
ReceptionReport * ReceptionReport::dup | ( | ) | const [virtual] |
Duplicates this ReceptionReport by calling the copy constructor.
Definition at line 179 of file reports.cc.
{ return new ReceptionReport(*this); }
int ReceptionReport::getDelaySinceLastSR | ( | ) | [virtual] |
Returns the delay since the last SenderReport of this sender has been received in units of 1/65536 seconds.
Definition at line 278 of file reports.cc.
{ return _delaySinceLastSR; }
uint8 ReceptionReport::getFractionLost | ( | ) | [virtual] |
Returns the fraction of packets lost as stored in this ReceptionReport.
Definition at line 218 of file reports.cc.
{ return _fractionLost; }
int ReceptionReport::getJitter | ( | ) | [virtual] |
int ReceptionReport::getLastSR | ( | ) | [virtual] |
Returns the rtp time stamp of the last SenderReport received from this sender.
Definition at line 266 of file reports.cc.
{ return _lastSR; }
int ReceptionReport::getPacketsLostCumulative | ( | ) | [virtual] |
Returns the number of expected minus the number of packets received.
Definition at line 230 of file reports.cc.
{ return _packetsLostCumulative; }
uint32 ReceptionReport::getSequenceNumber | ( | ) | [virtual] |
Returns the extended highest sequence number received.
Definition at line 242 of file reports.cc.
{ return _extendedHighestSequenceNumber; }
uint32 ReceptionReport::getSSRC | ( | ) | [virtual] |
Returns the ssrc identifier for which sender this ReceptionReport is.
Definition at line 206 of file reports.cc.
Referenced by RTCP::processIncomingRTCPPacket().
{ return _ssrc; }
std::string ReceptionReport::info | ( | ) | [virtual] |
Writes a short info about this ReceptionReport into the given string.
Definition at line 185 of file reports.cc.
{ std::stringstream out; out << "ReceptionReport.ssrc=" << _ssrc; return out.str(); }
ReceptionReport & ReceptionReport::operator= | ( | const ReceptionReport & | receptionReport | ) |
Assignment operator.
Definition at line 165 of file reports.cc.
Referenced by ReceptionReport().
{ cObject::operator=(receptionReport); _ssrc = receptionReport._ssrc; _fractionLost = receptionReport._fractionLost; _packetsLostCumulative = receptionReport._packetsLostCumulative; _extendedHighestSequenceNumber = receptionReport._extendedHighestSequenceNumber; _jitter = receptionReport._jitter; _lastSR = receptionReport._lastSR; _delaySinceLastSR = receptionReport._delaySinceLastSR; return *this; }
void ReceptionReport::setDelaySinceLastSR | ( | int | delaySinceLastSR | ) | [virtual] |
Sets the delay since the last SenderReport of this sender has been received in units of 1/65536 seconds.
Definition at line 284 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _delaySinceLastSR = delaySinceLastSR; }
void ReceptionReport::setFractionLost | ( | uint8 | fractionLost | ) | [virtual] |
Sets the fraction of packets lost.
Definition at line 224 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _fractionLost = fractionLost; }
void ReceptionReport::setJitter | ( | int | jitter | ) | [virtual] |
Sets ths interarrival jitter.
Definition at line 260 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _jitter = jitter; }
void ReceptionReport::setLastSR | ( | int | lastSR | ) | [virtual] |
Sets the rtp time stamp of the last SenderReport received from this sender.
Definition at line 272 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _lastSR = lastSR; }
void ReceptionReport::setPacketsLostCumulative | ( | int | packetLostCumulative | ) | [virtual] |
Sets the number of expected minus the number of packets received.
Definition at line 236 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _packetsLostCumulative = packetsLostCumulative; }
void ReceptionReport::setSequenceNumber | ( | uint32 | sequenceNumber | ) | [virtual] |
Set the extended highest sequence number received.
Definition at line 248 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _extendedHighestSequenceNumber = sequenceNumber; }
void ReceptionReport::setSSRC | ( | uint32 | ssrc | ) | [virtual] |
Sets the ssrc identifier of the sender this ReceptionReport is for.
Definition at line 212 of file reports.cc.
Referenced by RTPReceiverInfo::receptionReport().
{ _ssrc = ssrc; }
int ReceptionReport::_delaySinceLastSR [protected] |
The delay since the last SenderReport from this sender has been received in units of 1/65536 seconds.
Definition at line 289 of file reports.h.
Referenced by dump(), getDelaySinceLastSR(), operator=(), ReceptionReport(), and setDelaySinceLastSR().
uint32 ReceptionReport::_extendedHighestSequenceNumber [protected] |
The extended highest sequence number received.
Definition at line 273 of file reports.h.
Referenced by dump(), getSequenceNumber(), operator=(), ReceptionReport(), and setSequenceNumber().
uint8 ReceptionReport::_fractionLost [protected] |
The fraction lost.
Definition at line 263 of file reports.h.
Referenced by dump(), getFractionLost(), operator=(), ReceptionReport(), and setFractionLost().
int ReceptionReport::_jitter [protected] |
The interarrival jitter.
Definition at line 278 of file reports.h.
Referenced by dump(), getJitter(), operator=(), ReceptionReport(), and setJitter().
int ReceptionReport::_lastSR [protected] |
The rtp time stamp of the last SenderReport received from this source.
Definition at line 283 of file reports.h.
Referenced by dump(), getLastSR(), operator=(), ReceptionReport(), and setLastSR().
int ReceptionReport::_packetsLostCumulative [protected] |
The number of packets expected minus the number of packets received.
Definition at line 268 of file reports.h.
Referenced by dump(), getPacketsLostCumulative(), operator=(), ReceptionReport(), and setPacketsLostCumulative().
uint32 ReceptionReport::_ssrc [protected] |
The ssrc identifier of the sender this ReceptionReport is for.
Definition at line 258 of file reports.h.
Referenced by dump(), getSSRC(), info(), operator=(), ReceptionReport(), and setSSRC().