#include <cc++/rtpext.h>
Inheritance diagram for RTPPacket::
Public Methods | |
RTPPacket (const unsigned char *const block, size_t len, bool duplicate=false) | |
RTPPacket (size_t hdrlen, size_t plen) | |
~RTPPacket () | |
const RTPFixedHeader * | getHeader (void) const |
uint32 | getHeaderSize (void) const |
const RTPHeaderExt * | getHeaderExt () const |
const unsigned char *const | getPayload (void) const |
uint32 | getPayloadSize () const |
rtp_payload_t | getPayloadType () const |
uint16 | getSeqNum () const |
uint32 | getRawTimestamp (void) const |
bool | isPadded () const |
uint8 | getPaddingSize () const |
bool | isMarked () const |
bool | isExtended () const |
uint16 | getCSRCsCount () const |
const uint32 * | getCSRCs () const |
const unsigned char *const | getRawPacket () const |
uint32 | getRawPacketSize () const |
Protected Methods | |
void | setbuffer (const void *src, size_t len, size_t pos) |
void | endPacket () |
Protected Attributes | |
uint32 | hdrsize |
uint32 | payload_size |
uint32 | total |
unsigned char * | buffer |
bool | duplicated |
Provides common low level header structures and related methods.
Definition at line 61 of file rtpext.h.
|
Constructor, construct a packet object given the memory zone its content is stored.
|
|
Constructor, construct a packet object without specifying its real content yet.
|
|
Destructor, free the buffer provided in the constructor. |
|
Free memory allocated for the packet Referenced by ~RTPPacket().
|
|
Get the 32-bit identifiers of the contributing sources for the packet as an array, of length getCSRCsCount() |
|
Get the number of contributing sources specified in the packet header. |
|
Return low level structure for the header of the packet.
Definition at line 164 of file rtpext.h. Referenced by getCSRCs(), getCSRCsCount(), getHeaderExt(), getPayloadType(), getRawTimestamp(), IncomingRTPPkt::getSSRC(), getSeqNum(), isExtended(), isMarked(), isPadded(), OutgoingRTPPkt::setMarker(), OutgoingRTPPkt::setPayloadType(), OutgoingRTPPkt::setSSRC(), OutgoingRTPPkt::setSeqNum(), and OutgoingRTPPkt::setTimestamp().
|
|
Get a pointer to RTPHeaderExt pointing after the RTP header (fixed part plus contributing sources). No check for for the X bit is done.
Definition at line 185 of file rtpext.h. Referenced by IncomingRTPPkt::getExtSize(), and IncomingRTPPkt::getExtUndefined().
|
|
Obtain the length of the header, including contributing sources and header extension, if present.
Definition at line 174 of file rtpext.h. Referenced by getPayload().
|
|
Get the number of octets padding the end of the payload section.
|
|
|
|
|
|
|
|
Get the raw packet as it will be sent through the network
|
|
Get the raw packet length, including header, extension, payload and padding.
|
|
Obtain the absolute timestamp carried in the packet header.
Definition at line 226 of file rtpext.h. Referenced by OutgoingRTPPkt::getTimestamp().
|
|
Definition at line 217 of file rtpext.h. Referenced by IncomingRTPPkt::operator==(), and OutgoingRTPPkt::operator==().
|
|
Ask whether the packet contains header extensions
Definition at line 260 of file rtpext.h. Referenced by IncomingRTPPkt::getExtSize(), and IncomingRTPPkt::getExtUndefined().
|
|
Ask whether the packet is marked (for isntance, is a new talk spurt in some audio profiles)
|
|
Ask whether the packet contains padding bytes at the end
|
|
|
|
|
|
|
|
|
|
|
|
|