#include <RTCPPacket.h>
Inheritance diagram for RTCPPacket:
Public Types | |
enum | RTCP_PACKET_TYPE { RTCP_PT_UNDEF = 0, RTCP_PT_SR = 200, RTCP_PT_RR = 201, RTCP_PT_SDES = 202, RTCP_PT_BYE = 203 } |
Public Member Functions | |
RTCPPacket (const char *name=NULL) | |
RTCPPacket (const RTCPPacket &rtcpPacket) | |
virtual | ~RTCPPacket () |
RTCPPacket & | operator= (const RTCPPacket &rtcpPacket) |
virtual const char * | className () const |
virtual cObject * | dup () const |
virtual void | info (char *buf) const |
virtual void | writeContents (ostream &os) const |
virtual int | version () |
virtual int | padding () |
virtual int | count () |
virtual RTCP_PACKET_TYPE | packetType () |
virtual int | rtcpLength () const |
Protected Attributes | |
int | _version |
int | _padding |
int | _count |
RTCP_PACKET_TYPE | _packetType |
|
The values for the packet type field in the rtcp header as defined in the rfc. |
|
Default constructor. |
|
Copy constructor. |
|
Destructor. |
|
Return the class name "RTCPPacket". Reimplemented in RTCPReceiverReportPacket, RTCPSenderReportPacket, RTCPSDESPacket, and RTCPByePacket. |
|
Returns the value of the count field in the rtcp header. Depending on the type of rtcp packet it stands for number of receiver reports or number of sdes chunks contained in this packet. |
|
Duplicates the RTCPPacket by calling the copy constructor. Reimplemented in RTCPReceiverReportPacket, RTCPSenderReportPacket, RTCPSDESPacket, and RTCPByePacket. |
|
Writes a short info about this RTCPPacket into the given buffer. Reimplemented in RTCPReceiverReportPacket, RTCPSenderReportPacket, and RTCPSDESPacket. |
|
Assignment operator. |
|
Returns the packet type of this rtcp packet. |
|
1 if padding exists, 0 otherwise. In this implementation only 0 is used. |
|
Returns the value of the field length in the rtcp header. The value isn't stored because it can be calculated with the length() method inherited from cPacket. |
|
Returns the rtp version of the rtcp packet. It's always 2. |
|
Writes a detailed report about this RTCPPacket into the given stream. Reimplemented in RTCPReceiverReportPacket, RTCPSenderReportPacket, and RTCPSDESPacket. |
|
Depending on the packet type, here is stored how many receiver reports or sdes chunks are contained in the packet. Values from 0 to 31 are allowed. |
|
The packet type of the rtcp packet. |
|
Set to 1 if padding (bytes at the end of the packet to assure that the packet length in bytes is a multiple of a certain number; possibly needed for encryption) is used. In the simulation padding isn't needed, so it is always 0. |
|
The rtp version used. Always 2. |