ReceptionReport Class Reference

#include <reports.h>

List of all members.


Detailed Description

The class ReceptionReport represents an rtp receiver report stored in an RTPSenderReportPacket or RTPReceiverReport.


Public Member Functions

 ReceptionReport (const char *name=NULL)
 ReceptionReport (const ReceptionReport &receptionReport)
virtual ~ReceptionReport ()
ReceptionReportoperator= (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


Constructor & Destructor Documentation

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 };

ReceptionReport::~ReceptionReport (  )  [virtual]

Destructor.

00153                                   {
00154 };


Member Function Documentation

const char * ReceptionReport::className (  )  const [virtual]

Returns the class name "ReceptionReport".

00175                                              {
00176     return "ReceptionReport";
00177 };

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]

Returns the interarrival jitter.

00239                             {
00240     return _jitter;
00241 };

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]

Sets the fraction of packets lost.

00214                                                          {
00215     _fractionLost = fractionLost;
00216 };

void ReceptionReport::setJitter ( int  jitter  )  [virtual]

Sets ths interarrival jitter.

00244                                           {
00245     _jitter = jitter;
00246 };

void ReceptionReport::setLastSR ( int  lastSR  )  [virtual]

Sets the rtp time stamp of the last SenderReport received from this sender.

00254                                           {
00255     _lastSR = lastSR;
00256 };

void ReceptionReport::setPacketsLostCumulative ( int  packetLostCumulative  )  [virtual]

Sets the number of expected minus the number of packets received.

void ReceptionReport::setSequenceNumber ( u_int32  sequenceNumber  )  [virtual]

Set the extended highest sequence number received.

void ReceptionReport::setSSRC ( u_int32  ssrc  )  [virtual]

Sets the ssrc identifier of the sender this ReceptionReport is for.

00204                                           {
00205     _ssrc = ssrc;
00206 };

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 };


Member Data Documentation

int ReceptionReport::_delaySinceLastSR [protected]

The delay since the last SenderReport from this sender has been received in units of 1/65536 seconds.

u_int32 ReceptionReport::_extendedHighestSequenceNumber [protected]

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.


The documentation for this class was generated from the following files:
Generated on Wed Apr 4 13:20:23 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7