DOKK / manpages / debian 12 / libccrtp-doc / RTPSessionPool.3.en
RTPSessionPool(3) Library Functions Manual RTPSessionPool(3)

RTPSessionPool - This class is a base class for classes that define a group of RTP sessions that will be served by one or more execution threads.

#include <pool.h>

Inherits RTPSessionBaseHandler.

Inherited by SingleRTPSessionPool.


RTPSessionPool ()
virtual ~RTPSessionPool ()
bool addSession (RTPSessionBase &session)
bool removeSession (RTPSessionBase &session)
size_t getPoolLength () const
virtual void startRunning ()=0
bool isActive ()


typedef std::list< SessionListElement * >::iterator PoolIterator


void setActive ()
timeval getPoolTimeout ()
void setPoolTimeout (int sec, int usec)
void setPoolTimeout (struct timeval to)


std::list< SessionListElement * > sessionList
ThreadLock poolLock
fd_set recvSocketSet
SOCKET highestSocket

This class is a base class for classes that define a group of RTP sessions that will be served by one or more execution threads.

Derived classes are responsible for serving each RTP session with a thread at least.

In order to use the RTP session 'pool' you just have to build RTPSessionBase objects for each RTP session (instead of RTPSession objects). Then, add the RTPSessionBase objects to an RTP session 'pool' and call startRunning() method of the session pool.

Author:

Federico Montesino Pouzols fedemp@altern.org

Implemented in SingleRTPSessionPool.

Generated automatically by Doxygen for ccRTP from the source code.

Sat Oct 27 2018 ccRTP