---
name: "SingleRTPSessionPool"
section: "3"
platform: "linux"
package: "libccrtp-doc"
version: "2.0.9-4.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SingleRTPSessionPool"
---

# SingleRTPSessionPool(3)

## NAME

SingleRTPSessionPool

## SYNOPSIS

`#include <pool.h>`

Inherits **RTPSessionPool**, and Thread.

### Public Member Functions

**SingleRTPSessionPool** (int pri=0)\
 **~SingleRTPSessionPool** ()\
 void **startRunning** ()\

Public Member Functions inherited from **RTPSessionPool** **RTPSessionPool** ()\
 virtual **~RTPSessionPool** ()\
 bool **addSession** (**RTPSessionBase** &session)\
 bool **removeSession** (**RTPSessionBase** &session)\
 size\_t **getPoolLength** () const\
 bool **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) const\
 SOCKET **getControlRecvSocket** (**RTPSessionBase** &s) const\

### Protected Member Functions

void **run** ()\
 Runnable method for the thread.

Protected Member Functions inherited from **RTPSessionPool** void **setActive** ()\
 timeval **getPoolTimeout** ()\
 void **setPoolTimeout** (int sec, int usec)\
 void **setPoolTimeout** (struct timeval to)\

### Additional Inherited Members

Protected Types inherited from **RTPSessionPool** typedef std::list\< **SessionListElement** \* \>::iterator **PoolIterator**\

Protected Attributes inherited from **RTPSessionPool** std::list\< **SessionListElement** \* \> **sessionList**\
 ThreadLock **poolLock**\
 fd\_set **recvSocketSet**\
 SOCKET **highestSocket**\

## Constructor & Destructor Documentation

### SingleRTPSessionPool::SingleRTPSessionPool (int pri = `0`)` [inline]`

**Parameters**

*pri* optional thread priority value.

### SingleRTPSessionPool::~SingleRTPSessionPool ()` [inline]`

## Member Function Documentation

### void SingleRTPSessionPool::run ()` [protected]`

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

### void SingleRTPSessionPool::startRunning ()` [inline]`, ` [virtual]`

Implements **RTPSessionPool**.

## Author

Generated automatically by Doxygen for ccRTP from the source code.
