43 #ifndef CCXX_RTP_QUEUEBASE_H_
44 #define CCXX_RTP_QUEUEBASE_H_
46 #include <commoncpp/pointer.h>
95 {
return datablock->getPayloadType(); }
104 inline const uint8*
const
106 {
return datablock->getPayload(); }
113 {
return datablock->getPayloadSize(); }
129 {
return datablock->isMarked(); }
136 {
return datablock->getSeqNum(); }
143 {
return (uint8)datablock->getCSRCsCount(); }
152 {
return datablock->getCSRCs(); }
185 {
return localSSRC; }
196 {
return currentRTPClockRate; }
199 {
return currentPayloadType; }
202 {
return initialTime; }
212 { localSSRC = ssrc; localSSRCNetwork = htonl(ssrc); }
215 {
return localSSRCNetwork; }
227 inline virtual size_t
260 {
return defaultMaxSendSegmentSize;}
270 { maxSendSegmentSize = size; }
274 {
return maxSendSegmentSize; }
299 {
return defaultMaxRecvPacketSize; }
303 {
return maxRecvPacketSize; }
317 { maxRecvPacketSize = maxsize; }
321 { setMaxRecvPacketSize(getDefaultMaxRecvPacketSize()); }
337 #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
static const size_t defaultMaxRecvPacketSize
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 defaultMaxSendSegmentSize
uint32 currentRTPClockRate
uint8 PayloadType
RTP payload type numeric identifier.