INET Framework for OMNeT++/OMNEST
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.


Constructor & Destructor Documentation

ReceptionReport::ReceptionReport ( )

Default constructor.

Referenced by dup().

ReceptionReport::ReceptionReport ( const ReceptionReport receptionReport)

Copy constructor..

                                                                       : cObject()
{
    operator=(receptionReport);
}
ReceptionReport::~ReceptionReport ( ) [virtual]

Destructor.

{
}

Member Function Documentation

void ReceptionReport::dump ( std::ostream &  os) const [virtual]

Writes a longer info about this ReceptionReport into the given stream.

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.

{
    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.

{
    return _delaySinceLastSR;
}
uint8 ReceptionReport::getFractionLost ( ) [virtual]

Returns the fraction of packets lost as stored in this ReceptionReport.

{
    return _fractionLost;
}
int ReceptionReport::getJitter ( ) [virtual]

Returns the interarrival jitter.

{
    return _jitter;
}
int ReceptionReport::getLastSR ( ) [virtual]

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

{
    return _lastSR;
}
int ReceptionReport::getPacketsLostCumulative ( ) [virtual]

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

uint32 ReceptionReport::getSequenceNumber ( ) [virtual]

Returns the extended highest sequence number received.

uint32 ReceptionReport::getSSRC ( ) [virtual]

Returns the ssrc identifier for which sender this ReceptionReport is.

Referenced by RTCP::processIncomingRTCPPacket().

{
    return _ssrc;
}
std::string ReceptionReport::info ( ) [virtual]

Writes a short info about this ReceptionReport into the given string.

{
    std::stringstream out;
    out << "ReceptionReport.ssrc=" << _ssrc;
    return out.str();
}
ReceptionReport & ReceptionReport::operator= ( const ReceptionReport receptionReport)

Assignment operator.

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.

Referenced by RTPReceiverInfo::receptionReport().

{
    _delaySinceLastSR = delaySinceLastSR;
}
void ReceptionReport::setFractionLost ( uint8  fractionLost) [virtual]

Sets the fraction of packets lost.

Referenced by RTPReceiverInfo::receptionReport().

{
    _fractionLost = fractionLost;
}
void ReceptionReport::setJitter ( int  jitter) [virtual]

Sets ths interarrival jitter.

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.

Referenced by RTPReceiverInfo::receptionReport().

{
    _lastSR = lastSR;
}
void ReceptionReport::setPacketsLostCumulative ( int  packetLostCumulative) [virtual]

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

Referenced by RTPReceiverInfo::receptionReport().

{
    _packetsLostCumulative = packetsLostCumulative;
}
void ReceptionReport::setSequenceNumber ( uint32  sequenceNumber) [virtual]

Set the extended highest sequence number received.

Referenced by RTPReceiverInfo::receptionReport().

{
    _extendedHighestSequenceNumber = sequenceNumber;
}
void ReceptionReport::setSSRC ( uint32  ssrc) [virtual]

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

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.

Referenced by dump(), getDelaySinceLastSR(), operator=(), ReceptionReport(), and setDelaySinceLastSR().

The extended highest sequence number received.

Referenced by dump(), getSequenceNumber(), operator=(), ReceptionReport(), and setSequenceNumber().

uint8 ReceptionReport::_fractionLost [protected]

The fraction lost.

Referenced by dump(), getFractionLost(), operator=(), ReceptionReport(), and setFractionLost().

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

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

Referenced by dump(), getPacketsLostCumulative(), operator=(), ReceptionReport(), and setPacketsLostCumulative().

uint32 ReceptionReport::_ssrc [protected]

The ssrc identifier of the sender this ReceptionReport is for.

Referenced by dump(), getSSRC(), info(), operator=(), ReceptionReport(), and setSSRC().


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