SYNOPSIS

#include <pool.h>

Inherits RTPSessionBaseHandler.

Inherited by SingleRTPSessionPool.

Public Member Functions

RTPSessionPool ()

virtual ~RTPSessionPool ()

bool addSession (RTPSessionBase &session)

bool removeSession (RTPSessionBase &session)

size_t getPoolLength () const

virtual void startRunning ()=0

bool isActive ()

Protected Types

typedef std::list

< SessionListElement * >

::iterator PoolIterator"

Protected Member Functions

void setActive ()

timeval getPoolTimeout ()

void setPoolTimeout (int sec, int usec)

void setPoolTimeout (struct timeval to)

Protected Attributes

std::list< SessionListElement * > sessionList

ThreadLock poolLock

fd_set recvSocketSet

SOCKET highestSocket

Detailed Description

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 [email protected]

Member Typedef Documentation

typedef std::list<\fBSessionListElement\fP*>::iterator \fBRTPSessionPool::PoolIterator\fP\fC [protected]\fP

Constructor & Destructor Documentation

RTPSessionPool::RTPSessionPool ()

virtual RTPSessionPool::~RTPSessionPool ()\fC [inline]\fP, \fC [virtual]\fP

Member Function Documentation

bool RTPSessionPool::addSession (\fBRTPSessionBase\fP &session)

size_t RTPSessionPool::getPoolLength () const

timeval RTPSessionPool::getPoolTimeout ()\fC [inline]\fP, \fC [protected]\fP

bool RTPSessionPool::isActive ()\fC [inline]\fP

bool RTPSessionPool::removeSession (\fBRTPSessionBase\fP &session)

void RTPSessionPool::setActive ()\fC [inline]\fP, \fC [protected]\fP

void RTPSessionPool::setPoolTimeout (intsec, intusec)\fC [inline]\fP, \fC [protected]\fP

void RTPSessionPool::setPoolTimeout (struct timevalto)\fC [inline]\fP, \fC [protected]\fP

virtual void RTPSessionPool::startRunning ()\fC [pure virtual]\fP

Implemented in SingleRTPSessionPool.

Member Data Documentation

SOCKET RTPSessionPool::highestSocket\fC [protected]\fP

ThreadLock RTPSessionPool::poolLock\fC [mutable]\fP, \fC [protected]\fP

fd_set RTPSessionPool::recvSocketSet\fC [protected]\fP

std::list<\fBSessionListElement\fP*> RTPSessionPool::sessionList\fC [protected]\fP

Author

Generated automatically by Doxygen for ccRTP from the source code.