RTPSessionPool(3)
π RTPSessionPool(3) β bestie edition π
okay so this is a page from the Library Functions Manual, and the star of the show is RTPSessionPool. pull up a chair, grab a boba, we're doing this π§β¨
β¨ NAME β¨
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. it's giving "manager of a whole friend group" energy fr π
π¦ 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 () constvirtual void startRunning ()=0bool isActive ()
π«Ά Public Member Functions inherited from RTPSessionBaseHandler π«Ά
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) constSOCKET getControlRecvSocket (RTPSessionBase &s) const
π 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 * > sessionListThreadLock poolLockfd_set recvSocketSetSOCKET 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. (yes, at least β the bar is on the floor but it's there, no cap)
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. that's it, that's the whole recipe, slay π₯
β Author β
- Federico Montesino Pouzols
fedemp@altern.org
π§ MEMBER TYPEDEF DOCUMENTATION π§
typedef std::list<SessionListElement*>::iterator RTPSessionPool::PoolIterator [protected]
it's a typedef, it's protected, it's an iterator over a std::list of SessionListElement*. iconic behavior honestly.
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
RTPSessionPool::RTPSessionPool ()virtual RTPSessionPool::~RTPSessionPool () [inline], [virtual]
πΈ MEMBER FUNCTION DOCUMENTATION πΈ
bool RTPSessionPool::addSession (RTPSessionBase & session)size_t RTPSessionPool::getPoolLength () consttimeval RTPSessionPool::getPoolTimeout () [inline], [protected]bool RTPSessionPool::isActive () [inline]bool RTPSessionPool::removeSession (RTPSessionBase & session)void RTPSessionPool::setActive () [inline], [protected]void RTPSessionPool::setPoolTimeout (int sec, int usec) [inline], [protected]void RTPSessionPool::setPoolTimeout (struct timeval to) [inline], [protected]virtual void RTPSessionPool::startRunning () [pure virtual]
Implemented in SingleRTPSessionPool.
π MEMBER DATA DOCUMENTATION π
SOCKET RTPSessionPool::highestSocket [protected]ThreadLock RTPSessionPool::poolLock [mutable], [protected]fd_set RTPSessionPool::recvSocketSet [protected]std::list<SessionListElement*> RTPSessionPool::sessionList [protected]
π¦ AUTHOR π¦
Generated automatically by Doxygen for ccRTP from the source code.
and that's the whole page bestie, no notes, you ate π mwah! this lil manual page came from ccRTP and it's dated RTPSessionPool(3) β see you in the next one, love u, bye! πβ¨
π¦ where this page comes from
- debian trixie: libccrtp-doc 2.0.9-4.1 Β· GPL-2.0-or-later WITH MIF exception
- ubuntu noble: libccrtp-doc 2.0.9-2.5build1
- ubuntu questing: libccrtp-doc 2.0.9-4.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms