Go to the documentation of this file.
43 #ifndef CCXX_RTP_CQUEUE_H_
44 #define CCXX_RTP_CQUEUE_H_
115 { leavingDelay = delay; }
133 { end2EndDelay = t; }
137 {
return defaultEnd2EndDelay; }
141 {
return end2EndDelay; }
158 { sendControlBwFract = fraction; recvControlBwFract = 1 - fraction;}
171 { rtcpMinInterval = interval; }
178 {
return ctrlSendCount; }
210 getOutQueueCryptoContextCtrl(uint32 ssrc);
245 getInQueueCryptoContextCtrl(uint32 ssrc);
260 {
return queueApplication; }
264 { controlBwFract = fraction; }
268 {
return controlBwFract; }
275 controlTransmissionService();
282 controlReceptionService();
296 bool checkSSRCInRTCPPkt(SyncSourceLink& sourceLink,
bool is_new,
297 InetAddress& na, tpport_t tp);
300 endQueueRTCPManager();
313 onGotSR(
SyncSource& source, SendReport& SR, uint8 blocks);
326 onGotRR(
SyncSource& source, RecvReport& RR, uint8 blocks);
333 onGotSDES(
SyncSource& source, RTCPPacket& pkt);
345 onGotSDESChunk(
SyncSource& source, SDESChunk& chunk,
size_t len);
363 {
return rtcpCheckInterval; }
371 {
return lastSendPacketCount; }
378 { reconsInfo.rtcpPMembers = n; }
382 {
return reconsInfo.rtcpPMembers; }
406 sendControlToDestinations(
unsigned char* buffer,
size_t len);
420 dispatchControlPacket();
434 takeInControlPacket();
450 computeRTCPInterval();
486 onGotRRSRExtension(
unsigned char*,
size_t)
499 onGotGoodbye(
const SyncSource&,
const std::string&)
515 getBYE(RTCPPacket &pkt,
size_t &pointer,
size_t len);
521 packReportBlocks(RRBlock* blocks, uint16& len, uint16& available);
532 packSDES(uint16& len);
546 updateAvgRTCPSize(
size_t len);
554 reverseReconsideration();
557 timerReconsideration();
582 const char*
const value,
size_t len);
602 inline virtual uint16
617 inline virtual uint16
618 transportHeaderSize()
630 sendControl(
const unsigned char*
const buffer,
size_t len) = 0;
633 recvControl(
unsigned char* buffer,
size_t len,
634 InetHostAddress& na, tpport_t& tp) = 0;
640 volatile bool controlServiceActive;
641 float controlBwFract, sendControlBwFract, recvControlBwFract;
643 uint32 ctrlSendCount;
647 uint16 lowerHeadersSize;
665 timeval rtcpLastCheck;
667 timeval rtcpCheckInterval;
669 timeval rtcpNextCheck;
673 uint32 lastSendPacketCount;
689 static const uint16 TIMEOUT_MULTIPLIER;
690 static const double RECONSIDERATION_COMPENSATION;
692 mutable Mutex outCryptoMutex;
693 std::list<CryptoContextCtrl *> outCryptoContexts;
696 mutable Mutex inCryptoMutex;
697 std::list<CryptoContextCtrl *> inCryptoContexts;
756 #endif //CCXX_RTP_CQUEUE_H_
virtual ~AVPQueue()
Definition: cqueue.h:748
virtual bool end2EndDelayed(IncomingRTPPktLink &)
Definition: iqueue.h:1238
uint32 getSendRTCPPacketCount() const
Get the total number of RTCP packets sent until now.
Definition: cqueue.h:177
void setLeavingDelay(microtimeout_t delay)
Set how much time the stack will wait before deleting a synchronization source that has sent an RTCP ...
Definition: cqueue.h:114
float getControlBandwidth() const
Definition: cqueue.h:731
Synchronization source in an RTP session.
Definition: sources.h:192
void setEnd2EndDelay(microtimeout_t t)
This method sets the maximum end to end delay allowed.
Definition: cqueue.h:132
Sender block information of SR RTCP reports.
Definition: rtcppkt.h:453
void setSendersControlFraction(float fraction)
Specify the fraction of the total control bandwith to be dedicated to senders reports.
Definition: cqueue.h:157
__EXPORT RTPApplication & defaultApplication()
Get the RTPApplication object for the "default" application (the only one used by common applications...
void setControlBandwidth(float fraction)
Definition: cqueue.h:263
This class, an RTP/RTCP queue, adds audio/video profile (AVP) specific methods to the generic RTCP se...
Definition: cqueue.h:708
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition: base.h:67
microtimeout_t getDefaultEnd2EndDelay() const
Definition: cqueue.h:136
timeval rtcpTp
Definition: cqueue.h:658
uint32 getPrevMembersCount() const
Definition: cqueue.h:381
uint32 getLastSendPacketCount() const
Get the number of data packets sent at the time the last SR was generated.
Definition: cqueue.h:370
Report block information of SR/RR RTCP reports.
Definition: rtcppkt.h:373
microtimeout_t getEnd2EndDelay() const
Definition: cqueue.h:140
void setPRIVPrefix(Participant *part, const std::string val)
Definition: iqueue.h:188
The implementation for a SRTCP cryptographic context.
Definition: CryptoContextCtrl.h:61
low level structs and RTCP packet parsing and building methods.
Definition: rtcppkt.h:89
virtual size_t dispatchBYE(const std::string &)
A plugin point for posting of BYE messages.
Definition: queuebase.h:228
uint32 rtcpPMembers
Definition: cqueue.h:659
Struct for APP (application specific) RTCP packets.
Definition: rtcppkt.h:212
const RTPApplication & getApplication()
Definition: cqueue.h:259
A class of objects representing remote participants (RTP applications) in a multimedia session.
Definition: sources.h:124
timeval getRTCPCheckInterval()
Definition: cqueue.h:362
void setControlBandwidth(float fraction)
Specify the bandwith available for control (RTCP) packets.
Definition: cqueue.h:727
AVPQueue(uint32 ssrc, uint32 size=RTPDataQueue::defaultMembersHashSize, RTPApplication &app=defaultApplication())
Local SSRC is given instead of computed by the queue.
Definition: cqueue.h:743
AVPQueue(uint32 size=RTPDataQueue::defaultMembersHashSize, RTPApplication &app=defaultApplication())
Definition: cqueue.h:735
An RTP application, holding identifying RTCP SDES item values. Represents local participants.
Definition: sources.h:364
virtual void onGotAPP(SyncSource &, RTCPCompoundHandler::APPPacket &, size_t)
Plug-in for handling of APP (application specific) RTCP packets.
Definition: cqueue.h:357
void setSDESItem(Participant *part, SDESItemType item, const std::string &val)
Definition: iqueue.h:183
static const size_t defaultMembersHashSize
Definition: iqueue.h:854
float getControlBandwidth() const
Definition: cqueue.h:267
void setMinRTCPInterval(microtimeout_t interval)
Manually set the minimum interval for sending RTP compound packets.
Definition: cqueue.h:170
void setPrevMembersNum(uint32 n)
Definition: cqueue.h:377
Generic RTP input/output queues.
SDESItemType
SDES items that may be carried in a Source DEScription RTCP packet.
Definition: rtcppkt.h:64
RTP data queue handler.
Definition: ioqueue.h:74
Adds generic management of RTCP functions to an RTP data queue.
Definition: cqueue.h:79