|
| IncomingRTPPkt (const unsigned char *block, size_t len) |
| Build an RTP packet object from a data buffer. More...
|
|
| ~IncomingRTPPkt () |
|
bool | isHeaderValid () |
| Get validity of this packet. More...
|
|
uint32 | getSSRC () const |
| Get synchronization source numeric identifier. More...
|
|
int32 | unprotect (CryptoContext *pcc) |
| Unprotect a received packet. More...
|
|
bool | operator== (const IncomingRTPPkt &p) const |
| Two incoming packets are equal if they come from sources with the same SSRC and have the same sequence number. More...
|
|
bool | operator!= (const IncomingRTPPkt &p) const |
| Two incoming packets are not equal if they come from different sources or have different sequence numbers. More...
|
|
| RTPPacket (const unsigned char *const block, size_t len, bool duplicate=false) |
| Constructor, construct a packet object given the memory zone its content (header and payload) is stored. More...
|
|
| RTPPacket (size_t hdrlen, size_t plen, uint8 paddinglen, CryptoContext *pcc=NULL) |
| Construct a packet object without specifying its real content yet. More...
|
|
uint32 | getHeaderSize () const |
| Get the length of the header, including contributing sources identifiers and header extension, if present. More...
|
|
const uint8 *const | getPayload () const |
|
uint32 | getPayloadSize () const |
|
PayloadType | getPayloadType () const |
|
uint16 | getSeqNum () const |
|
uint32 | getTimestamp () const |
|
uint8 | getProtocolVersion () 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...
|
|
uint16 | getHdrExtUndefined () const |
| Get the first 16 bits (in network order) of the header of the RTP header extension. More...
|
|
uint32 | getHdrExtSize () const |
| Get the length (in octets) of the data contained in the header extension. More...
|
|
const unsigned char * | getHdrExtContent () const |
| Get the content of the header extension. 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...
|
|
uint32 | getRawPacketSizeSrtp () const |
|
size_t | getSizeOfFixedHeader () const |
|
void | reComputePayLength (bool padding) |
| Re-compute payload length. More...
|
|
struct RFC2833Payload * | getRaw2833Payload (void) |
| Fetch a raw 2833 packet. More...
|
|
uint16 | get2833Duration (void) |
| Fetch 2833 duration field. More...
|
|
void | set2833Duration (uint16 timestamp) |
| Set 2833 duration field. More...
|
|
RTP packets received from other participants.
This class is intented to construct a packet object just after every packet is received by the scheduled queue, so that they are processed in an understandable and format independent manner inside the stack.
- Author
- Federico Montesino Pouzols fedem.nosp@m.p@al.nosp@m.tern..nosp@m.org