#include <reports.h>
Public Member Functions | |
| SenderReport (const char *name=NULL) | |
| SenderReport (const SenderReport &senderReport) | |
| virtual | ~SenderReport () |
| SenderReport & | operator= (const SenderReport &senderReport) |
| virtual cObject * | dup () const |
| virtual const char * | className () const |
| virtual std::string | info () |
| virtual void | writeContents (std::ostream &os) const |
| virtual u_int64 | ntpTimeStamp () |
| virtual void | setNTPTimeStamp (u_int64 ntpTimeStamp) |
| virtual u_int32 | rtpTimeStamp () |
| virtual void | setRTPTimeStamp (u_int32 timeStamp) |
| virtual u_int32 | packetCount () |
| virtual void | setPacketCount (u_int32 packetCount) |
| virtual u_int32 | byteCount () |
| virtual void | setByteCount (u_int32 byteCount) |
Protected Attributes | |
| u_int64 | _ntpTimeStamp |
| u_int32 | _rtpTimeStamp |
| u_int32 | _packetCount |
| u_int32 | _byteCount |
|
|
Default constructor. 00036 : cObject(name) {
00037 _ntpTimeStamp = 0;
00038 _rtpTimeStamp = 0;
00039 _packetCount = 0;
00040 _byteCount = 0;
00041 };
|
|
|
Copy constructor. Needed by omnet++. 00044 : cObject() {
00045 setName(senderReport.name());
00046 operator=(senderReport);
00047 };
|
|
|
Destructor. 00050 {
00051 };
|
|
|
Returns how many bytes have been sent as store in this SenderReport. 00120 {
00121 return _byteCount;
00122 };
|
|
|
Returns the class name "SenderReport". 00069 {
00070 return "SenderReport";
00071 };
|
|
|
Duplicates this SenderReport by calling the copy constructor. 00064 {
00065 return new SenderReport(*this);
00066 };
|
|
|
Writes a short info about this SenderReport into the given string. 00074 {
00075 std::stringstream out;
00076 out << "SenderReport.timeStamp=" << _rtpTimeStamp;
00077 return out.str();
00078 };
|
|
|
Returns the contained ntp time stamp. 00090 {
00091 return _ntpTimeStamp;
00092 };
|
|
|
Assignment operator. 00054 {
00055 cObject::operator=(senderReport);
00056 _ntpTimeStamp = senderReport._ntpTimeStamp;
00057 _rtpTimeStamp = senderReport._rtpTimeStamp;
00058 _packetCount = senderReport._packetCount;
00059 _byteCount = senderReport._byteCount;
00060 return *this;
00061 };
|
|
|
Returns the number of packets sent as stored in this SenderReport. 00110 {
00111 return _packetCount;
00112 };
|
|
|
Returns the contained rtp time stamp. 00100 {
00101 return _rtpTimeStamp;
00102 };
|
|
|
Sets the value how many bytes have been sent. 00125 {
00126 _byteCount = byteCount;
00127 }
|
|
|
Sets the ntp time stamp. 00095 {
00096 _ntpTimeStamp = ntpTimeStamp;
00097 }
|
|
|
Sets the number of packets sent. 00115 {
00116 _packetCount = packetCount;
00117 }
|
|
|
Sets the rtp time stamp. 00105 {
00106 _rtpTimeStamp = rtpTimeStamp;
00107 };
|
|
|
Writes a longer info about this SenderReport into the given stream. 00081 {
00082 os << "SenderReport:" << endl;
00083 os << " ntpTimeStamp = " << _ntpTimeStamp << endl;
00084 os << " rtpTimeStamp = " << _rtpTimeStamp << endl;
00085 os << " packetCount = " << _packetCount << endl;
00086 os << " byteCount = " << _byteCount << endl;
00087 };
|
|
|
The number of (payload) bytes sent. |
|
|
The ntp time stamp. |
|
|
The number of packets sent. |
|
|
The rtp time stamp. |
1.4.1