44 #ifndef CCXX_RTP_QUEUEBASE_H_
45 #define CCXX_RTP_QUEUEBASE_H_
51 #ifdef CCXX_NAMESPACES
98 {
return datablock->getPayloadType(); }
107 inline const uint8*
const
109 {
return datablock->getPayload(); }
116 {
return datablock->getPayloadSize(); }
132 {
return datablock->isMarked(); }
139 {
return datablock->getSeqNum(); }
146 {
return (uint8)datablock->getCSRCsCount(); }
155 {
return datablock->getCSRCs(); }
188 {
return localSSRC; }
199 {
return currentRTPClockRate; }
202 {
return currentPayloadType; }
205 {
return initialTime; }
215 { localSSRC = ssrc; localSSRCNetwork = htonl(ssrc); }
218 {
return localSSRCNetwork; }
230 inline virtual size_t
263 {
return defaultMaxSendSegmentSize;}
273 { maxSendSegmentSize = size; }
277 {
return maxSendSegmentSize; }
302 {
return defaultMaxRecvPacketSize; }
306 {
return maxRecvPacketSize; }
320 { maxRecvPacketSize = maxsize; }
324 { setMaxRecvPacketSize(getDefaultMaxRecvPacketSize()); }
338 #ifdef CCXX_NAMESPACES
342 #endif //CCXX_RTP_QUEUEBASE_H_
virtual ~OutgoingDataQueueBase()
bool isMarked() const
Is this data unit marked?.
virtual size_t dispatchBYE(const std::string &)
A plugin point for posting of BYE messages.
PayloadType getType() const
Synchronization source in an RTP session.
Interface (envelope) to data received over RTP packets.
uint16 getSeqNum() const
Get data unit sequence number.
RTP packets received from other participants.
bool setPayloadFormat(const PayloadFormat &pf)
Set the payload format in use, for timing and payload type identification purposes.
size_t getDefaultMaxSendSegmentSize()
virtual ~IncomingDataQueueBase()
virtual void renewLocalSSRC()
Sources of synchronization and participants related clases.
size_t getMaxRecvPacketSize() const
PayloadType getCurrentPayloadType() const
timeval getInitialTime() const
Pointer< const IncomingRTPPkt > datablock
void setLocalSSRC(uint32 ssrc)
void setMaxSendSegmentSize(size_t size)
Set maximum payload segment size before fragmenting sends.
A virtual base class for RTP queue hierarchies.
size_t getMaxSendSegmentSize()
uint32 getLocalSSRCNetwork() const
const SyncSource * source
PayloadType currentPayloadType
uint32 getLocalSSRC() const
size_t maxSendSegmentSize
size_t getDefaultMaxRecvPacketSize() const
const SyncSource & getSource() const
void setMaxRecvPacketSize(size_t maxsize)
uint8 getContributorsCount() const
Get the number of contributing sources in the CSRC list.
const uint32 * getContributorsID() const
Get the array of 32-bit CSRC identifiers.
const uint8 *const getData() const
Get data as it is received in RTP packets (i.e.
uint32 getCurrentRTPClockRate() const
Get the clock rate in RTP clock units (for instance, 8000 units per second for PCMU, or 90000 units per second for MP2T).
static const size_t defaultMaxRecvPacketSize
Template for creating reference count managed smart pointers.
uint32 currentRTPClockRate
static const size_t defaultMaxSendSegmentSize
uint8 PayloadType
RTP payload type numeric identifier.