TAO_AV
2.2.7
|
This is an abstract class from which all RTCP packet types are derived. It contains code used to validate the RTCP packet. More...
#include <RTCP_Packet.h>
Public Member Functions | |
RTCP_Packet (void) | |
Constructor for outgoing RTCP packets. More... | |
RTCP_Packet (char *buffer) | |
Constructor for incoming RTCP packets. More... | |
virtual | ~RTCP_Packet () |
Destructor. More... | |
void | get_packet_data (char **buffer, ACE_UINT16 &length) |
Returns a pointer to a local buffer containing the packet. More... | |
virtual unsigned int | packet_size (void)=0 |
int | is_valid (char is_first) |
Protected Member Functions | |
virtual void | build_packet (void)=0 |
Protected Attributes | |
RTCP_Common_Header | chd_ |
Header data common to all RTCP packets. More... | |
char * | packet_data_ |
Buffer to hold byte representation of the RTCP packet. More... | |
This is an abstract class from which all RTCP packet types are derived. It contains code used to validate the RTCP packet.
RTCP_Packet::RTCP_Packet | ( | void | ) |
Constructor for outgoing RTCP packets.
RTCP_Packet::RTCP_Packet | ( | char * | buffer | ) |
Constructor for incoming RTCP packets.
|
virtual |
Destructor.
|
protectedpure virtual |
Used to create the byte representation of the RTCP packet. Defined in child class.
Implemented in RTCP_SR_Packet, RTCP_SDES_Packet, RTCP_RR_Packet, and RTCP_BYE_Packet.
void RTCP_Packet::get_packet_data | ( | char ** | buffer, |
ACE_UINT16 & | length | ||
) |
Returns a pointer to a local buffer containing the packet.
int RTCP_Packet::is_valid | ( | char | is_first | ) |
Checks the validity of an RTCP packet. RTCP packets can be sent together in a compound packet and is_first indicates the first packet in a compound packet
|
pure virtual |
Returns the size of the packet. Defined in child class.
Implemented in RTCP_SR_Packet, RTCP_SDES_Packet, RTCP_RR_Packet, and RTCP_BYE_Packet.
|
protected |
Header data common to all RTCP packets.
|
protected |
Buffer to hold byte representation of the RTCP packet.