37 #ifndef RTPRAWPACKET_H
39 #define RTPRAWPACKET_H
41 #include "rtpconfig.h"
74 bool IsRTP()
const {
return isrtp; }
83 void ZeroData() { packetdata = 0; packetdatalength = 0; }
86 size_t packetdatalength;
95 packetdatalength = datalen;
96 senderaddress = address;
100 inline RTPRawPacket::~RTPRawPacket()
103 RTPDeleteByteArray(packetdata,GetMemoryManager());
105 RTPDelete(senderaddress,GetMemoryManager());
108 #endif // RTPRAWPACKET_H
uint8_t * GetData()
Returns the pointer to the data which is contained in this packet.
Definition: rtprawpacket.h:62
A memory manager.
Definition: rtpmemorymanager.h:144
This class is used to specify wallclock time, delay intervals etc.
Definition: rtptimeutilities.h:77
This class is used by the transmission component to store the incoming RTP and RTCP data in...
Definition: rtprawpacket.h:48
size_t GetDataLength() const
Returns the length of the packet described by this instance.
Definition: rtprawpacket.h:65
RTPTime GetReceiveTime() const
Returns the time at which this packet was received.
Definition: rtprawpacket.h:68
bool IsRTP() const
Returns true if this data is RTP data, false if it is RTCP data.
Definition: rtprawpacket.h:74
This class is an abstract class which is used to specify destinations, multicast groups etc...
Definition: rtpaddress.h:47
const RTPAddress * GetSenderAddress() const
Returns the address stored in this packet.
Definition: rtprawpacket.h:71
RTPRawPacket(uint8_t *data, size_t datalen, RTPAddress *address, RTPTime &recvtime, bool rtp, RTPMemoryManager *mgr=0)
Creates an instance which stores data from data with length datalen.
Definition: rtprawpacket.h:92
void ZeroData()
Sets the pointer to the data stored in this packet to zero.
Definition: rtprawpacket.h:83