#include <RTP.h>
Public Member Functions | |
RTP_Packet (char *buffer, int length) | |
Constructor for incoming RTP packets. | |
RTP_Packet (unsigned char padding, unsigned char marker, unsigned char payloadType, ACE_UINT32 sequenceNumber, ACE_UINT32 timeStamp, ACE_UINT32 syncSource, unsigned char contribSourcCount, ACE_UINT32 contribSourceList[], char *data, ACE_UINT16 dataSize) | |
Constructor for outgoing RTP packets. | |
~RTP_Packet (void) | |
Destructor. | |
ACE_UINT16 | packet_size (void) |
Returns the size of the RTP packet in bytes. | |
ACE_UINT16 | payload_size (void) |
Returns the size of the payload in bytes. | |
void | get_frame_info (TAO_AV_frame_info *frame_info) |
Populates the passed in frame_info. | |
int | is_valid (void) |
Returns 1 if packet is valid and 0 if not. | |
unsigned int | ver (void) |
Returns the RTP version of the packet. | |
unsigned int | pad (void) |
Returns 1 if the padding bit is set, 0 if not. | |
unsigned int | ext (void) |
Returns 1 if the header extension bit is set, 0 if not. | |
unsigned int | ext_bytes (void) |
Returns the number of bytes in the header extension or 0 if no extension. | |
unsigned int | cc (void) |
unsigned int | mrk (void) |
Returns 1 if the marker bit is set, 0 if not. | |
unsigned int | pt (void) |
Returns the payload type of the packet. | |
ACE_UINT16 | sn (void) |
Returns the sequence number of the packet. | |
ACE_UINT32 | ts (void) |
Returns the timestamp of the packet. | |
ACE_UINT32 | ssrc (void) |
Returns the synchronization source id of the packet. | |
void | get_csrc_list (ACE_UINT32 **csrc_list, ACE_UINT16 &length) |
void | get_payload (char **payload, ACE_UINT16 &size) |
void | get_packet_data (char **packet, ACE_UINT16 &size) |
Private Attributes | |
char | packet_ [RTP_MTU] |
Local buffer to hold the RTP packet. | |
ACE_UINT32 | host_byte_order_csrc_list_ [15] |
char | host_byte_order_payload_ [RTP_MTU] |
Local buffer to hold the payload with the values stored in host byte order. | |
unsigned int | extension_bytes_ |
The number of bytes in the header extension - 0 if no extension. | |
ACE_UINT16 | packet_size_ |
The size of the overall data packet. | |
ACE_UINT16 | payload_size_ |
The size of the payload portion of the packet. |
|
Constructor for incoming RTP packets.
|
|
Constructor for outgoing RTP packets.
|
|
Destructor.
|
|
Returns the contributing source count. This should only be non-zero for mixers. |
|
Returns 1 if the header extension bit is set, 0 if not.
|
|
Returns the number of bytes in the header extension or 0 if no extension.
|
|
Returns a pointer to the local contributing source list and its length. This should be empty except for mixers. RTP_Packet retains ownership. |
|
Populates the passed in frame_info.
|
|
Returns a pointer to the locally stored rtp packet and its size in bytes. RTP_Packet retains ownership. |
|
Returns a pointer to the locally stored payload and its size in bytes. The payload is returned in host byte order. RTP_Packet retains ownership. |
|
Returns 1 if packet is valid and 0 if not.
|
|
Returns 1 if the marker bit is set, 0 if not.
|
|
Returns the size of the RTP packet in bytes.
|
|
Returns 1 if the padding bit is set, 0 if not.
|
|
Returns the size of the payload in bytes.
|
|
Returns the payload type of the packet.
|
|
Returns the sequence number of the packet.
|
|
Returns the synchronization source id of the packet.
|
|
Returns the timestamp of the packet.
|
|
Returns the RTP version of the packet.
|
|
The number of bytes in the header extension - 0 if no extension.
|
|
Local buffer to hold the contributing source list with the values stored in host byte order. |
|
Local buffer to hold the payload with the values stored in host byte order.
|
|
Local buffer to hold the RTP packet.
|
|
The size of the overall data packet.
|
|
The size of the payload portion of the packet.
|