44#ifndef CCXX_RTP_IOQUEUE_H_
45#define CCXX_RTP_IOQUEUE_H_
118 { typeOfService = tos; }
125 { dataServiceActive =
true; }
131 { dataServiceActive =
false; }
140 {
return dataServiceActive; }
217 {
return defaultSessionBw; }
221 {
return sessionBw; }
228 { timeclock.setTimer(); }
237 {
return timeclock.getElapsed(); }
318 volatile bool dataServiceActive;
322 static const uint32 defaultSessionBw;
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition base.h:68
Queue for incoming RTP data packets in an RTP session.
Definition iqueue.h:886
A generic outgoing RTP data queue supporting multiple destinations.
Definition oqueue.h:226
A packet queue handler for building different kinds of RTP protocol systems.
Definition ioqueue.h:78
RTPDataQueue(uint32 size=defaultMembersHashSize)
Constructor.
void setTypeOfService(Tos tos)
Specify the kind of service the application expects to use.
Definition ioqueue.h:117
virtual ~RTPDataQueue()
The queue destructor flushes the queue and stops all services.
Definition ioqueue.h:272
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:220
void setTimeclock()
Set the packet timeclock for synchronizing timestamps.
Definition ioqueue.h:227
void renewLocalSSRC()
Definition ioqueue.h:282
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:216
void disableStack()
Disable packet queue processing in the stack.
Definition ioqueue.h:130
timeout_t getTimeclock() const
Get the packet timeclock for synchronizing timestamps.
Definition ioqueue.h:236
virtual void timerTick()
A plugin point for timer tick driven events.
Definition ioqueue.h:279
bool isActive() const
Get active connection state flag.
Definition ioqueue.h:139
Tos
rtp.h cc++/rtp.h
Definition ioqueue.h:99
@ tosBestEffort
Best-effort network service.
Definition ioqueue.h:100
void setSessionBandwidth(uint32 bw)
Specify the bandwidth of the current session.
Definition ioqueue.h:212
void enableStack()
Enable packet queue processing in the stack.
Definition ioqueue.h:124
Generic RTP input queues.
Generic RTP output queues.