#include <reports.h>
Public Member Functions | |
ReceptionReport (const char *name=NULL) | |
ReceptionReport (const ReceptionReport &receptionReport) | |
virtual | ~ReceptionReport () |
ReceptionReport & | operator= (const ReceptionReport &receptionReport) |
virtual cObject * | dup () const |
virtual const char * | className () const |
virtual std::string | info () |
virtual void | writeContents (std::ostream &os) const |
virtual u_int32 | ssrc () |
virtual void | setSSRC (u_int32 ssrc) |
virtual u_int8 | fractionLost () |
virtual void | setFractionLost (u_int8 fractionLost) |
virtual int | packetsLostCumulative () |
virtual void | setPacketsLostCumulative (int packetLostCumulative) |
virtual u_int32 | sequenceNumber () |
virtual void | setSequenceNumber (u_int32 sequenceNumber) |
virtual int | jitter () |
virtual void | setJitter (int jitter) |
virtual int | lastSR () |
virtual void | setLastSR (int lastSR) |
virtual int | delaySinceLastSR () |
virtual void | setDelaySinceLastSR (int delaySinceLastSR) |
Protected Attributes | |
u_int32 | _ssrc |
u_int8 | _fractionLost |
int | _packetsLostCumulative |
u_int32 | _extendedHighestSequenceNumber |
int | _jitter |
int | _lastSR |
int | _delaySinceLastSR |
ReceptionReport::ReceptionReport | ( | const char * | name = NULL |
) |
Default constructor.
00136 : cObject(name) { 00137 _ssrc = 0; 00138 _fractionLost = 0; 00139 _packetsLostCumulative = 0; 00140 _extendedHighestSequenceNumber = 0; 00141 _jitter = 0; 00142 _lastSR = 0; 00143 _delaySinceLastSR = 0; 00144 };
ReceptionReport::ReceptionReport | ( | const ReceptionReport & | receptionReport | ) |
Copy constructor..
00147 : cObject() { 00148 setName(receptionReport.name()); 00149 operator=(receptionReport); 00150 };
const char * ReceptionReport::className | ( | ) | const [virtual] |
int ReceptionReport::delaySinceLastSR | ( | ) | [virtual] |
Returns the delay since the last SenderReport of this sender has been received in units of 1/65536 seconds.
00259 { 00260 return _delaySinceLastSR; 00261 };
cObject * ReceptionReport::dup | ( | ) | const [virtual] |
Duplicates this ReceptionReport by calling the copy constructor.
00170 { 00171 return new ReceptionReport(*this); 00172 };
u_int8 ReceptionReport::fractionLost | ( | ) | [virtual] |
Returns the fraction of packets lost as stored in this ReceptionReport.
00209 { 00210 return _fractionLost; 00211 };
std::string ReceptionReport::info | ( | ) | [virtual] |
Writes a short info about this ReceptionReport into the given string.
00180 { 00181 std::stringstream out; 00182 out << "ReceptionReport.ssrc=" << _ssrc; 00183 return out.str(); 00184 };
int ReceptionReport::jitter | ( | ) | [virtual] |
int ReceptionReport::lastSR | ( | ) | [virtual] |
Returns the rtp time stamp of the last SenderReport received from this sender.
00249 { 00250 return _lastSR; 00251 };
ReceptionReport & ReceptionReport::operator= | ( | const ReceptionReport & | receptionReport | ) |
Assignment operator.
00157 { 00158 cObject::operator=(receptionReport); 00159 _ssrc = receptionReport._ssrc; 00160 _fractionLost = receptionReport._fractionLost; 00161 _packetsLostCumulative = receptionReport._packetsLostCumulative; 00162 _extendedHighestSequenceNumber = receptionReport._extendedHighestSequenceNumber; 00163 _jitter = receptionReport._jitter; 00164 _lastSR = receptionReport._lastSR; 00165 _delaySinceLastSR = receptionReport._delaySinceLastSR; 00166 return *this; 00167 };
int ReceptionReport::packetsLostCumulative | ( | ) | [virtual] |
Returns the number of expected minus the number of packets received.
00219 { 00220 return _packetsLostCumulative; 00221 };
u_int32 ReceptionReport::sequenceNumber | ( | ) | [virtual] |
Returns the extended highest sequence number received.
00229 { 00230 return _extendedHighestSequenceNumber; 00231 };
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.
00264 { 00265 _delaySinceLastSR = delaySinceLastSR; 00266 };
void ReceptionReport::setFractionLost | ( | u_int8 | fractionLost | ) | [virtual] |
void ReceptionReport::setJitter | ( | int | jitter | ) | [virtual] |
void ReceptionReport::setLastSR | ( | int | lastSR | ) | [virtual] |
Sets the rtp time stamp of the last SenderReport received from this sender.
void ReceptionReport::setPacketsLostCumulative | ( | int | packetLostCumulative | ) | [virtual] |
Sets the number of expected minus the number of packets received.
00224 { 00225 _packetsLostCumulative = packetsLostCumulative; 00226 };
void ReceptionReport::setSequenceNumber | ( | u_int32 | sequenceNumber | ) | [virtual] |
Set the extended highest sequence number received.
00234 { 00235 _extendedHighestSequenceNumber = sequenceNumber; 00236 };
void ReceptionReport::setSSRC | ( | u_int32 | ssrc | ) | [virtual] |
Sets the ssrc identifier of the sender this ReceptionReport is for.
u_int32 ReceptionReport::ssrc | ( | ) | [virtual] |
Returns the ssrc identifier for which sender this ReceptionReport is.
00199 { 00200 return _ssrc; 00201 };
void ReceptionReport::writeContents | ( | std::ostream & | os | ) | const [virtual] |
Writes a longer info about this ReceptionReport into the given stream.
00187 { 00188 os << "ReceptionReport:" << endl; 00189 os << " ssrc = " << _ssrc << endl; 00190 os << " fractionLost = " << (int)_fractionLost << endl; 00191 os << " packetsLostCumulative = " << _packetsLostCumulative << endl; 00192 os << " extendedHighestSequenceNumber = " << _extendedHighestSequenceNumber << endl; 00193 os << " jitter = " << _jitter << endl; 00194 os << " lastSR = " << _lastSR << endl; 00195 os << " delaySinceLastSR = " << _delaySinceLastSR << endl; 00196 };
int ReceptionReport::_delaySinceLastSR [protected] |
The delay since the last SenderReport from this sender has been received in units of 1/65536 seconds.
The extended highest sequence number received.
u_int8 ReceptionReport::_fractionLost [protected] |
The fraction lost.
int ReceptionReport::_jitter [protected] |
The interarrival jitter.
int ReceptionReport::_lastSR [protected] |
The rtp time stamp of the last SenderReport received from this source.
int ReceptionReport::_packetsLostCumulative [protected] |
The number of packets expected minus the number of packets received.
u_int32 ReceptionReport::_ssrc [protected] |
The ssrc identifier of the sender this ReceptionReport is for.