|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <RTPPortManager.hxx>
Public Member Functions | |
| RTPPortManager (int portRangeMin=17000, int portRangeMax=18000) | |
| unsigned int | allocateRTPPort () |
| Allocates an RTP port (even - the RTCP port is the one after it). Returns 0 if none is free. | |
| unsigned int | allocateRTPPort (const resip::Data &address) |
| Allocates an RTP port that UDP sockets can be bound to on address, with the RTCP port after it: a port another socket has (eg. | |
| void | freeRTPPort (unsigned int port) |
| unsigned int | getNumAllocatedPortPairs () |
| unsigned int | getNumFreePortPairs () |
Definition at line 14 of file RTPPortManager.hxx.
| RTPPortManager::RTPPortManager | ( | int | portRangeMin = 17000, |
| int | portRangeMax = 18000 |
||
| ) |
Definition at line 17 of file RTPPortManager.cxx.
| unsigned int RTPPortManager::allocateRTPPort | ( | ) |
Allocates an RTP port (even - the RTCP port is the one after it). Returns 0 if none is free.
Definition at line 44 of file RTPPortManager.cxx.
| unsigned int RTPPortManager::allocateRTPPort | ( | const resip::Data & | address | ) |
Allocates an RTP port that UDP sockets can be bound to on address, with the RTCP port after it: a port another socket has (eg.
another application's) is skipped - a media stream can't share it - and put back at the end of the free list. Returns 0 if no free port can be bound.
Definition at line 121 of file RTPPortManager.cxx.
| void RTPPortManager::freeRTPPort | ( | unsigned int | port | ) |
Definition at line 139 of file RTPPortManager.cxx.
|
inline |
Definition at line 25 of file RTPPortManager.hxx.
|
inline |
Definition at line 26 of file RTPPortManager.hxx.