ccRTP 2.1.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
SingleRTPSessionPool Class Reference

#include <pool.h>

Inheritance diagram for SingleRTPSessionPool:
Inheritance graph
[legend]
Collaboration diagram for SingleRTPSessionPool:
Collaboration graph
[legend]

Public Member Functions

 SingleRTPSessionPool (int pri=0)
 
 ~SingleRTPSessionPool ()
 
void startRunning ()
 
bool addSession (RTPSessionBase &session)
 
bool removeSession (RTPSessionBase &session)
 
size_t getPoolLength () const
 
bool isActive ()
 
microtimeout_t getSchedulingTimeout (RTPSessionBase &s)
 
timeval getRTCPCheckInterval (RTPSessionBase &s)
 
size_t takeInDataPacket (RTPSessionBase &s)
 
size_t dispatchDataPacket (RTPSessionBase &s)
 
void controlReceptionService (RTPSessionBase &s)
 
void controlTransmissionService (RTPSessionBase &s)
 
SOCKET getDataRecvSocket (RTPSessionBase &s) const
 
SOCKET getControlRecvSocket (RTPSessionBase &s) const
 

Protected Types

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

Protected Member Functions

void run ()
 Runnable method for the thread. More...
 
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

Definition at line 205 of file pool.h.

Member Typedef Documentation

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

Definition at line 190 of file pool.h.

Constructor & Destructor Documentation

SingleRTPSessionPool::SingleRTPSessionPool ( int  pri = 0)
inline
Parameters
prioptional thread priority value.

Definition at line 213 of file pool.h.

SingleRTPSessionPool::~SingleRTPSessionPool ( )
inline

Definition at line 218 of file pool.h.

Member Function Documentation

bool RTPSessionPool::addSession ( RTPSessionBase session)
inherited

Definition at line 56 of file pool.cpp.

void RTPSessionBaseHandler::controlReceptionService ( RTPSessionBase s)
inlineinherited

Definition at line 71 of file pool.h.

void RTPSessionBaseHandler::controlTransmissionService ( RTPSessionBase s)
inlineinherited

Definition at line 75 of file pool.h.

size_t RTPSessionBaseHandler::dispatchDataPacket ( RTPSessionBase s)
inlineinherited

Definition at line 67 of file pool.h.

SOCKET RTPSessionBaseHandler::getControlRecvSocket ( RTPSessionBase s) const
inlineinherited

Definition at line 81 of file pool.h.

SOCKET RTPSessionBaseHandler::getDataRecvSocket ( RTPSessionBase s) const
inlineinherited

Definition at line 78 of file pool.h.

size_t RTPSessionPool::getPoolLength ( ) const
inherited

Definition at line 99 of file pool.cpp.

timeval RTPSessionPool::getPoolTimeout ( )
inlineprotectedinherited

Definition at line 180 of file pool.h.

timeval RTPSessionBaseHandler::getRTCPCheckInterval ( RTPSessionBase s)
inlineinherited

Definition at line 59 of file pool.h.

microtimeout_t RTPSessionBaseHandler::getSchedulingTimeout ( RTPSessionBase s)
inlineinherited

Definition at line 56 of file pool.h.

bool RTPSessionPool::isActive ( )
inlineinherited

Definition at line 173 of file pool.h.

bool RTPSessionPool::removeSession ( RTPSessionBase session)
inherited

Definition at line 77 of file pool.cpp.

void SingleRTPSessionPool::run ( void  )
protected

Runnable method for the thread.

This thread serves all the RTP sessions.added to this pool.

Definition at line 113 of file pool.cpp.

void RTPSessionPool::setActive ( )
inlineprotectedinherited

Definition at line 177 of file pool.h.

void RTPSessionPool::setPoolTimeout ( int  sec,
int  usec 
)
inlineprotectedinherited

Definition at line 183 of file pool.h.

void RTPSessionPool::setPoolTimeout ( struct timeval  to)
inlineprotectedinherited

Definition at line 186 of file pool.h.

void SingleRTPSessionPool::startRunning ( )
inlinevirtual

Implements RTPSessionPool.

Definition at line 221 of file pool.h.

size_t RTPSessionBaseHandler::takeInDataPacket ( RTPSessionBase s)
inlineinherited

Definition at line 63 of file pool.h.

Field Documentation

SOCKET RTPSessionPool::highestSocket
protectedinherited

Definition at line 196 of file pool.h.

ThreadLock RTPSessionPool::poolLock
mutableprotectedinherited

Definition at line 192 of file pool.h.

fd_set RTPSessionPool::recvSocketSet
protectedinherited

Definition at line 195 of file pool.h.

std::list<SessionListElement*> RTPSessionPool::sessionList
protectedinherited

Definition at line 189 of file pool.h.


The documentation for this class was generated from the following files: