#include <cc++/rtpext.h>
Inheritance diagram for IncomingRTPPkt::
Public Methods | |
IncomingRTPPkt (RTPQueue &queue, const unsigned char *block, size_t len, struct timeval recvtime) | |
Build an RTP packet, given the queue it is going to be inserted, its content, length and reception time. More... | |
~IncomingRTPPkt () | |
Destructor. More... | |
bool | isHeaderValid () |
Get validity of this packet. More... | |
bool | operator== (const IncomingRTPPkt &p) const |
bool | operator!= (const IncomingRTPPkt &p) const |
uint32 | getSSRC () const |
Get synchronization source numeric identifier. More... | |
RTPSource & | getSource () const |
Get an object that provides information about the source of this packet. More... | |
uint32 | getTimestamp () const |
Get timestamp of this packet. More... | |
void | setRecvTimestamp (const timeval &t) |
Set the time this packet was received at. More... | |
timeval | getRecvTimestamp () const |
Get the time this packet was received at. More... | |
uint16 | getExtUndefined () const |
Get the first 16 bits (in network order) of the header of the RTP header extension. More... | |
uint32 | getExtSize () const |
Get the length (in octets) of the data contained in the header extension. More... |
This class is intented to construct packet objects just after every packet is received by the scheduled queue, so that they will be processed in an understandable and format independent manner inside the stack.
|
Build an RTP packet, given the queue it is going to be inserted, its content, length and reception time. This constructor links the packet to its source and records the reception of the packet in the correponding source object. However, this constructor does not assume that the packet will be inserted in the queue. Header check, whose result can be consulted via isHeaderValid(), is also performed.
|
|
Destructor.
|
|
Get the length (in octets) of the data contained in the header extension. Note that this length does not include the four octets at the beginning of the header extension.
|
|
Get the first 16 bits (in network order) of the header of the RTP header extension. Its meaning is undefined at this level.
|
|
Get the time this packet was received at.
|
|
Get synchronization source numeric identifier.
|
|
Get an object that provides information about the source of this packet.
|
|
Get timestamp of this packet. The timestamp of incoming packets is filtered so that the timestamp this method provides for the first packet received from every source starts from 0.
|
|
Get validity of this packet.
|
|
|
|
|
|
Set the time this packet was received at.
|