#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 |
ReceptionReport::ReceptionReport | ( | ) |
Default constructor.
Referenced by dup().
00127 : cObject() { 00128 _ssrc = 0; 00129 _fractionLost = 0; 00130 _packetsLostCumulative = 0; 00131 _extendedHighestSequenceNumber = 0; 00132 _jitter = 0; 00133 _lastSR = 0; 00134 _delaySinceLastSR = 0; 00135 };
ReceptionReport::ReceptionReport | ( | const ReceptionReport & | receptionReport | ) |
ReceptionReport & ReceptionReport::operator= | ( | const ReceptionReport & | receptionReport | ) |
Assignment operator.
Referenced by ReceptionReport().
00147 { 00148 cObject::operator=(receptionReport); 00149 _ssrc = receptionReport._ssrc; 00150 _fractionLost = receptionReport._fractionLost; 00151 _packetsLostCumulative = receptionReport._packetsLostCumulative; 00152 _extendedHighestSequenceNumber = receptionReport._extendedHighestSequenceNumber; 00153 _jitter = receptionReport._jitter; 00154 _lastSR = receptionReport._lastSR; 00155 _delaySinceLastSR = receptionReport._delaySinceLastSR; 00156 return *this; 00157 };
ReceptionReport * ReceptionReport::dup | ( | ) | const [virtual] |
Duplicates this ReceptionReport by calling the copy constructor.
00160 { 00161 return new ReceptionReport(*this); 00162 };
std::string ReceptionReport::info | ( | ) | [virtual] |
Writes a short info about this ReceptionReport into the given string.
00165 { 00166 std::stringstream out; 00167 out << "ReceptionReport.ssrc=" << _ssrc; 00168 return out.str(); 00169 };
void ReceptionReport::dump | ( | std::ostream & | os | ) | const [virtual] |
Writes a longer info about this ReceptionReport into the given stream.
Referenced by RTCPReceiverReportPacket::dump().
00172 { 00173 os << "ReceptionReport:" << endl; 00174 os << " ssrc = " << _ssrc << endl; 00175 os << " fractionLost = " << (int)_fractionLost << endl; 00176 os << " packetsLostCumulative = " << _packetsLostCumulative << endl; 00177 os << " extendedHighestSequenceNumber = " << _extendedHighestSequenceNumber << endl; 00178 os << " jitter = " << _jitter << endl; 00179 os << " lastSR = " << _lastSR << endl; 00180 os << " delaySinceLastSR = " << _delaySinceLastSR << endl; 00181 };
uint32 ReceptionReport::getSSRC | ( | ) | [virtual] |
Returns the ssrc identifier for which sender this ReceptionReport is.
Referenced by RTCP::processIncomingRTCPPacket().
00184 { 00185 return _ssrc; 00186 };
void ReceptionReport::setSSRC | ( | uint32 | ssrc | ) | [virtual] |
Sets the ssrc identifier of the sender this ReceptionReport is for.
Referenced by RTPReceiverInfo::receptionReport().
00189 { 00190 _ssrc = ssrc; 00191 };
uint8 ReceptionReport::getFractionLost | ( | ) | [virtual] |
Returns the fraction of packets lost as stored in this ReceptionReport.
00194 { 00195 return _fractionLost; 00196 };
void ReceptionReport::setFractionLost | ( | uint8 | fractionLost | ) | [virtual] |
Sets the fraction of packets lost.
Referenced by RTPReceiverInfo::receptionReport().
00199 { 00200 _fractionLost = fractionLost; 00201 };
int ReceptionReport::getPacketsLostCumulative | ( | ) | [virtual] |
Returns the number of expected minus the number of packets received.
00204 { 00205 return _packetsLostCumulative; 00206 };
void ReceptionReport::setPacketsLostCumulative | ( | int | packetLostCumulative | ) | [virtual] |
Sets the number of expected minus the number of packets received.
Referenced by RTPReceiverInfo::receptionReport().
00209 { 00210 _packetsLostCumulative = packetsLostCumulative; 00211 };
uint32 ReceptionReport::getSequenceNumber | ( | ) | [virtual] |
Returns the extended highest sequence number received.
00214 { 00215 return _extendedHighestSequenceNumber; 00216 };
void ReceptionReport::setSequenceNumber | ( | uint32 | sequenceNumber | ) | [virtual] |
Set the extended highest sequence number received.
Referenced by RTPReceiverInfo::receptionReport().
00219 { 00220 _extendedHighestSequenceNumber = sequenceNumber; 00221 };
int ReceptionReport::getJitter | ( | ) | [virtual] |
void ReceptionReport::setJitter | ( | int | jitter | ) | [virtual] |
Sets ths interarrival jitter.
Referenced by RTPReceiverInfo::receptionReport().
00229 { 00230 _jitter = jitter; 00231 };
int ReceptionReport::getLastSR | ( | ) | [virtual] |
Returns the rtp time stamp of the last SenderReport received from this sender.
00234 { 00235 return _lastSR; 00236 };
void ReceptionReport::setLastSR | ( | int | lastSR | ) | [virtual] |
Sets the rtp time stamp of the last SenderReport received from this sender.
Referenced by RTPReceiverInfo::receptionReport().
00239 { 00240 _lastSR = lastSR; 00241 };
int ReceptionReport::getDelaySinceLastSR | ( | ) | [virtual] |
Returns the delay since the last SenderReport of this sender has been received in units of 1/65536 seconds.
00244 { 00245 return _delaySinceLastSR; 00246 };
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.
Referenced by RTPReceiverInfo::receptionReport().
00249 { 00250 _delaySinceLastSR = delaySinceLastSR; 00251 };
uint32 ReceptionReport::_ssrc [protected] |
The ssrc identifier of the sender this ReceptionReport is for.
Referenced by dump(), getSSRC(), info(), operator=(), ReceptionReport(), and setSSRC().
uint8 ReceptionReport::_fractionLost [protected] |
The fraction lost.
Referenced by dump(), getFractionLost(), operator=(), ReceptionReport(), and setFractionLost().
int ReceptionReport::_packetsLostCumulative [protected] |
The number of packets expected minus the number of packets received.
Referenced by dump(), getPacketsLostCumulative(), operator=(), ReceptionReport(), and setPacketsLostCumulative().
uint32 ReceptionReport::_extendedHighestSequenceNumber [protected] |
The extended highest sequence number received.
Referenced by dump(), getSequenceNumber(), operator=(), ReceptionReport(), and setSequenceNumber().
int ReceptionReport::_jitter [protected] |
The interarrival jitter.
Referenced by dump(), getJitter(), operator=(), ReceptionReport(), and setJitter().
int ReceptionReport::_lastSR [protected] |
The rtp time stamp of the last SenderReport received from this source.
Referenced by dump(), getLastSR(), operator=(), ReceptionReport(), and setLastSR().
int ReceptionReport::_delaySinceLastSR [protected] |
The delay since the last SenderReport from this sender has been received in units of 1/65536 seconds.
Referenced by dump(), getDelaySinceLastSR(), operator=(), ReceptionReport(), and setDelaySinceLastSR().