#include <rtppkt.h>
Inheritance diagram for IncomingRTPPkt:
Public Member Functions | |
IncomingRTPPkt (const unsigned char *block, size_t len) | |
Build an RTP packet object from a data buffer. | |
~IncomingRTPPkt () | |
bool | isHeaderValid () |
Get validity of this packet. | |
uint32 | getSSRC () const |
Get synchronization source numeric identifier. | |
int32 | unprotect (CryptoContext *pcc) |
Unprotect a received packet. | |
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. | |
bool | operator!= (const IncomingRTPPkt &p) const |
Two incoming packets are not equal if they come from different sources or have different sequence numbers. | |
bool | checkZrtpChecksum (bool check) |
Recompute and check ZRTP checksum. |
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.
|
Build an RTP packet object from a data buffer. This constructor first performs a generic RTP data packet header check, whose result can be checked via isHeaderValid().
|
|
|
|
Recompute and check ZRTP checksum. If the check parameter is true then this method recomputes the ZRTP checksum and compares it with the checksum conatined in the packet. If the parameter is set to false the method only adjusts the length of the data.
|
|
Get synchronization source numeric identifier.
|
|
Get validity of this packet.
|
|
Two incoming packets are not equal if they come from different sources or have different sequence numbers.
|
|
Two incoming packets are equal if they come from sources with the same SSRC and have the same sequence number.
|
|
Unprotect a received packet. Perform SRTP processing on this packet.
|