This class is used by the transmission component to store the incoming RTP and RTCP data in.
More...
#include <rtprawpacket.h>
Inherits jrtplib::RTPMemoryObject.
Creates an instance which stores data from data
with length datalen
. Only the pointer to the data is stored, no actual copy is made! The address from which this packet originated is set to address
and the time at which the packet was received is set to recvtime
. The flag which indicates whether this data is RTP or RTCP data is set to rtp
. A memory manager can be installed as well.
uint8_t* jrtplib::RTPRawPacket::GetData |
( |
| ) |
|
|
inline |
size_t jrtplib::RTPRawPacket::GetDataLength |
( |
| ) |
const |
|
inline |
RTPTime jrtplib::RTPRawPacket::GetReceiveTime |
( |
| ) |
const |
|
inline |
const RTPAddress* jrtplib::RTPRawPacket::GetSenderAddress |
( |
| ) |
const |
|
inline |
bool jrtplib::RTPRawPacket::IsRTP |
( |
| ) |
const |
|
inline |
void jrtplib::RTPRawPacket::ZeroData |
( |
| ) |
|
|
inline |
Sets the pointer to the data stored in this packet to zero. This will prevent a delete
call for the actual data when the destructor of RTPRawPacket is called. This function is used by the RTPPacket and RTCPCompoundPacket classes to obtain the packet data (without having to copy it) and to make sure the data isn't deleted when the destructor of RTPRawPacket is called.
The documentation for this class was generated from the following file: