Public Methods |
| RTPPacket (const unsigned char *const block, size_t len, bool duplicate=false) |
| Constructor, construct a packet object given the memory zone its content is stored. More...
|
| RTPPacket (size_t hdrlen, size_t plen) |
| Constructor, construct a packet object without specifying its real content yet. More...
|
| ~RTPPacket () |
| Destructor, free the buffer provided in the constructor. More...
|
const RTPFixedHeader * | getHeader (void) const |
| Return low level structure for the header of the packet. More...
|
uint32 | getHeaderSize (void) const |
| Obtain the length of the header, including contributing sources and header extension, if present. More...
|
const RTPHeaderExt * | getHeaderExt () const |
| Get a pointer to RTPHeaderExt pointing after the RTP header (fixed part plus contributing sources). More...
|
const unsigned char *const | getPayload (void) const |
uint32 | getPayloadSize () const |
rtp_payload_t | getPayloadType () const |
uint16 | getSeqNum () const |
bool | isPadded () const |
| Ask whether the packet contains padding bytes at the end. More...
|
uint8 | getPaddingSize () const |
| Get the number of octets padding the end of the payload section. More...
|
bool | isMarked () const |
| Ask whether the packet is marked (for isntance, is a new talk spurt in some audio profiles). More...
|
bool | isExtended () const |
| Ask whether the packet contains header extensions. More...
|
uint16 | getCSRCsCount () const |
| Get the number of contributing sources specified in the packet header. More...
|
const uint32 * | getCSRCs () const |
| Get the 32-bit identifiers of the contributing sources for the packet as an array, of length getCSRCsCount(). More...
|
const unsigned char *const | getRawPacket () const |
| Get the raw packet as it will be sent through the network. More...
|
uint32 | getRawPacketSize () const |
| Get the raw packet length, including header, extension, payload and padding. More...
|
Protected Methods |
uint32 | getRawTimestamp (void) const |
| Obtain the absolute timestamp carried in the packet header. More...
|
void | setbuffer (const void *src, size_t len, size_t pos) |
void | endPacket () |
| Free memory allocated for the packet. More...
|
Protected Attributes |
uint32 | hdrsize |
uint32 | payload_size |
uint32 | total |
unsigned char * | buffer |
bool | duplicated |
Provides common low level header structures and related methods.