Public Member Functions | Protected Attributes

ReceptionReport Class Reference

#include <reports.h>

List of all members.

Public Member Functions

 ReceptionReport ()
 ReceptionReport (const ReceptionReport &receptionReport)
virtual ~ReceptionReport ()
ReceptionReportoperator= (const ReceptionReport &receptionReport)
virtual ReceptionReportdup () 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

Detailed Description

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

Definition at line 142 of file reports.h.


Constructor & Destructor Documentation

ReceptionReport::ReceptionReport (  ) 

Default constructor.

Definition at line 142 of file reports.cc.

Referenced by dup().

ReceptionReport::ReceptionReport ( const ReceptionReport receptionReport  ) 

Copy constructor..

Definition at line 154 of file reports.cc.

                                                                       : cObject()
{
    operator=(receptionReport);
}

ReceptionReport::~ReceptionReport (  )  [virtual]

Destructor.

Definition at line 160 of file reports.cc.

{
}


Member Function Documentation

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]

Returns the interarrival jitter.

Definition at line 254 of file reports.cc.

{
    return _jitter;
}

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.

uint32 ReceptionReport::getSequenceNumber (  )  [virtual]

Returns the extended highest sequence number received.

Definition at line 242 of file reports.cc.

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


Member Data Documentation

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().

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().

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().


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