37 #ifndef RTPRAWPACKET_H
39 #define RTPRAWPACKET_H
41 #include "rtpconfig.h"
77 bool IsRTP()
const {
return isrtp; }
86 void ZeroData() { packetdata = 0; packetdatalength = 0; }
89 size_t packetdatalength;
98 packetdatalength = datalen;
99 senderaddress = address;
103 inline RTPRawPacket::~RTPRawPacket()
106 RTPDeleteByteArray(packetdata,GetMemoryManager());
108 RTPDelete(senderaddress,GetMemoryManager());
113 #endif // RTPRAWPACKET_H
This class is used by the transmission component to store the incoming RTP and RTCP data in...
Definition: rtprawpacket.h:51
RTPTime GetReceiveTime() const
Returns the time at which this packet was received.
Definition: rtprawpacket.h:71
size_t GetDataLength() const
Returns the length of the packet described by this instance.
Definition: rtprawpacket.h:68
This class is an abstract class which is used to specify destinations, multicast groups etc...
Definition: rtpaddress.h:50
void ZeroData()
Sets the pointer to the data stored in this packet to zero.
Definition: rtprawpacket.h:86
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:95
const RTPAddress * GetSenderAddress() const
Returns the address stored in this packet.
Definition: rtprawpacket.h:74
This class is used to specify wallclock time, delay intervals etc.
Definition: rtptimeutilities.h:80
A memory manager.
Definition: rtpmemorymanager.h:147
uint8_t * GetData()
Returns the pointer to the data which is contained in this packet.
Definition: rtprawpacket.h:65
bool IsRTP() const
Returns true if this data is RTP data, false if it is RTCP data.
Definition: rtprawpacket.h:77