#include <reports.h>
Public Member Functions | |
| SenderReport () | |
| SenderReport (const SenderReport &senderReport) | |
| virtual | ~SenderReport () |
| SenderReport & | operator= (const SenderReport &senderReport) |
| virtual SenderReport * | dup () const |
| virtual std::string | info () |
| virtual void | dump (std::ostream &os) const |
| virtual uint64 | getNTPTimeStamp () |
| virtual void | setNTPTimeStamp (uint64 ntpTimeStamp) |
| virtual uint32 | getRTPTimeStamp () |
| virtual void | setRTPTimeStamp (uint32 timeStamp) |
| virtual uint32 | getPacketCount () |
| virtual void | setPacketCount (uint32 packetCount) |
| virtual uint32 | getByteCount () |
| virtual void | setByteCount (uint32 byteCount) |
Protected Attributes | |
| uint64 | _ntpTimeStamp |
| uint32 | _rtpTimeStamp |
| uint32 | _packetCount |
| uint32 | _byteCount |
The class SenderReport represents an rtp sender report as contained in an RTCPSenderReportPacket.
Definition at line 34 of file reports.h.
| SenderReport::SenderReport | ( | ) |
Default constructor.
Definition at line 33 of file reports.cc.
Referenced by dup().
: cObject()
{
_ntpTimeStamp = 0;
_rtpTimeStamp = 0;
_packetCount = 0;
_byteCount = 0;
}
| SenderReport::SenderReport | ( | const SenderReport & | senderReport | ) |
Copy constructor. Needed by omnet++.
Definition at line 42 of file reports.cc.
: cObject()
{
operator=(senderReport);
}
| SenderReport::~SenderReport | ( | ) | [virtual] |
| void SenderReport::dump | ( | std::ostream & | os | ) | const [virtual] |
Writes a longer info about this SenderReport into the given stream.
Definition at line 78 of file reports.cc.
Referenced by RTCPSenderReportPacket::dump().
{
os << "SenderReport:" << endl;
os << " ntpTimeStamp = " << _ntpTimeStamp << endl;
os << " rtpTimeStamp = " << _rtpTimeStamp << endl;
os << " packetCount = " << _packetCount << endl;
os << " byteCount = " << _byteCount << endl;
}
| SenderReport * SenderReport::dup | ( | ) | const [virtual] |
Duplicates this SenderReport by calling the copy constructor.
Definition at line 64 of file reports.cc.
{
return new SenderReport(*this);
}
| uint32 SenderReport::getByteCount | ( | ) | [virtual] |
Returns how many bytes have been sent as store in this SenderReport.
Definition at line 124 of file reports.cc.
{
return _byteCount;
}
| uint64 SenderReport::getNTPTimeStamp | ( | ) | [virtual] |
Returns the contained ntp time stamp.
Definition at line 88 of file reports.cc.
Referenced by RTPReceiverInfo::processSenderReport().
{
return _ntpTimeStamp;
}
| uint32 SenderReport::getPacketCount | ( | ) | [virtual] |
Returns the number of packets sent as stored in this SenderReport.
Definition at line 112 of file reports.cc.
{
return _packetCount;
}
| uint32 SenderReport::getRTPTimeStamp | ( | ) | [virtual] |
Returns the contained rtp time stamp.
Definition at line 100 of file reports.cc.
Referenced by RTPReceiverInfo::processSenderReport().
{
return _rtpTimeStamp;
}
| std::string SenderReport::info | ( | ) | [virtual] |
Writes a short info about this SenderReport into the given string.
Definition at line 70 of file reports.cc.
{
std::stringstream out;
out << "SenderReport.timeStamp=" << _rtpTimeStamp;
return out.str();
}
| SenderReport & SenderReport::operator= | ( | const SenderReport & | senderReport | ) |
Assignment operator.
Definition at line 53 of file reports.cc.
Referenced by SenderReport().
{
cObject::operator=(senderReport);
_ntpTimeStamp = senderReport._ntpTimeStamp;
_rtpTimeStamp = senderReport._rtpTimeStamp;
_packetCount = senderReport._packetCount;
_byteCount = senderReport._byteCount;
return *this;
}
| void SenderReport::setByteCount | ( | uint32 | byteCount | ) | [virtual] |
Sets the value how many bytes have been sent.
Definition at line 130 of file reports.cc.
Referenced by RTPSenderInfo::senderReport().
{
_byteCount = byteCount;
}
| void SenderReport::setNTPTimeStamp | ( | uint64 | ntpTimeStamp | ) | [virtual] |
Sets the ntp time stamp.
Definition at line 94 of file reports.cc.
Referenced by RTPSenderInfo::senderReport().
{
_ntpTimeStamp = ntpTimeStamp;
}
| void SenderReport::setPacketCount | ( | uint32 | packetCount | ) | [virtual] |
Sets the number of packets sent.
Definition at line 118 of file reports.cc.
Referenced by RTPSenderInfo::senderReport().
{
_packetCount = packetCount;
}
| void SenderReport::setRTPTimeStamp | ( | uint32 | timeStamp | ) | [virtual] |
Sets the rtp time stamp.
Definition at line 106 of file reports.cc.
Referenced by RTPSenderInfo::senderReport().
{
_rtpTimeStamp = rtpTimeStamp;
}
uint32 SenderReport::_byteCount [protected] |
The number of (payload) bytes sent.
Definition at line 134 of file reports.h.
Referenced by dump(), getByteCount(), operator=(), SenderReport(), and setByteCount().
uint64 SenderReport::_ntpTimeStamp [protected] |
The ntp time stamp.
Definition at line 119 of file reports.h.
Referenced by dump(), getNTPTimeStamp(), operator=(), SenderReport(), and setNTPTimeStamp().
uint32 SenderReport::_packetCount [protected] |
The number of packets sent.
Definition at line 129 of file reports.h.
Referenced by dump(), getPacketCount(), operator=(), SenderReport(), and setPacketCount().
uint32 SenderReport::_rtpTimeStamp [protected] |
The rtp time stamp.
Definition at line 124 of file reports.h.
Referenced by dump(), getRTPTimeStamp(), info(), operator=(), SenderReport(), and setRTPTimeStamp().
1.7.1