43 #ifndef CCXX_RTP_IOQUEUE_H_
44 #define CCXX_RTP_IOQUEUE_H_
117 { typeOfService = tos; }
124 { dataServiceActive =
true; }
130 { dataServiceActive =
false; }
139 {
return dataServiceActive; }
216 {
return defaultSessionBw; }
220 {
return sessionBw; }
227 { timeclock.setTimer(); }
236 {
return timeclock.getElapsed(); }
317 volatile bool dataServiceActive;
321 static const uint32 defaultSessionBw;
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition: base.h:67
Queue for incoming RTP data packets in an RTP session.
Definition: iqueue.h:885
A generic outgoing RTP data queue supporting multiple destinations.
Definition: oqueue.h:225
A packet queue handler for building different kinds of RTP protocol systems.
Definition: ioqueue.h:77
RTPDataQueue(uint32 size=defaultMembersHashSize)
Constructor.
void setTypeOfService(Tos tos)
Specify the kind of service the application expects to use.
Definition: ioqueue.h:116
virtual ~RTPDataQueue()
The queue destructor flushes the queue and stops all services.
Definition: ioqueue.h:271
uint32 getCurrentTimestamp() const
Get the timestamp that should be given for a packet whose payload sampling instant corresponds to the...
uint32 getSessionBandwidth() const
Definition: ioqueue.h:219
void setTimeclock()
Set the packet timeclock for synchronizing timestamps.
Definition: ioqueue.h:226
void renewLocalSSRC()
Definition: ioqueue.h:281
virtual bool isPendingData(microtimeout_t timeout)=0
This function is used to check for and schedule against arriving packets based on the derived connect...
void endQueue()
This method ends the queue.
RTPDataQueue(uint32 *ssrc, uint32 size=defaultMembersHashSize)
Using this constructor you can start a session with the given ssrc, instead of the usual randomly gen...
uint32 getDefaultSessionBandwidth() const
Definition: ioqueue.h:215
void disableStack()
Disable packet queue processing in the stack.
Definition: ioqueue.h:129
timeout_t getTimeclock() const
Get the packet timeclock for synchronizing timestamps.
Definition: ioqueue.h:235
virtual void timerTick()
A plugin point for timer tick driven events.
Definition: ioqueue.h:278
bool isActive() const
Get active connection state flag.
Definition: ioqueue.h:138
Tos
rtp.h cc++/rtp.h
Definition: ioqueue.h:98
@ tosBestEffort
Best-effort network service.
Definition: ioqueue.h:99
void setSessionBandwidth(uint32 bw)
Specify the bandwidth of the current session.
Definition: ioqueue.h:211
void enableStack()
Enable packet queue processing in the stack.
Definition: ioqueue.h:123
Generic RTP input queues.
Generic RTP output queues.