#include <cc++/rtpext.h>
Inheritance diagram for IncomingRTPPkt::
Public Methods | |
IncomingRTPPkt (RTPQueue &queue, const unsigned char *block, size_t len, struct timeval recvtime) | |
~IncomingRTPPkt () | |
bool | isHeaderValid () |
bool | operator== (const IncomingRTPPkt &p) const |
bool | operator!= (const IncomingRTPPkt &p) const |
uint32 | getSSRC () const |
RTPSource & | getSource () const |
uint32 | getTimestamp () const |
void | setRecvTimestamp (const timeval &t) |
timeval | getRecvTimestamp () const |
uint16 | getExtUndefined () const |
uint32 | getExtSize () const |
Private Methods | |
IncomingRTPPkt (const IncomingRTPPkt &ip) | |
IncomingRTPPkt & | operator= (const IncomingRTPPkt &ip) |
Private Attributes | |
IncomingRTPPkt * | next |
IncomingRTPPkt * | prev |
IncomingRTPPkt * | srcnext |
IncomingRTPPkt * | srcprev |
RTPSource & | source |
timeval | reception_timestamp |
bool | valid |
uint32 | cached_timestamp |
friend | RTPQueue |
friend | RTPSource |
Static Private Attributes | |
const uint16 | RTP_INVALID_MASK = (0x7e) |
const uint16 | RTP_INVALID_VALUE = (0x48) |
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.
Definition at line 474 of file rtpext.h.
|
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. |
|
Copy constructor from objects of its same kind, declared private to avoid its use. |
|
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.
Definition at line 535 of file rtpext.h. Referenced by operator==().
|
|
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
|
|
|
|
Assignment operator from objects of its same kind, declared private to avoid its use. |
|
|
|
Set the time this packet was received at.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|