reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::RTPPortManager Class Reference

#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 ()
 

Detailed Description

Definition at line 14 of file RTPPortManager.hxx.

Constructor & Destructor Documentation

◆ RTPPortManager()

RTPPortManager::RTPPortManager ( int  portRangeMin = 17000,
int  portRangeMax = 18000 
)

Definition at line 17 of file RTPPortManager.cxx.

Member Function Documentation

◆ allocateRTPPort() [1/2]

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.

◆ allocateRTPPort() [2/2]

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.

◆ freeRTPPort()

void RTPPortManager::freeRTPPort ( unsigned int  port)

Definition at line 139 of file RTPPortManager.cxx.

◆ getNumAllocatedPortPairs()

unsigned int resip::RTPPortManager::getNumAllocatedPortPairs ( )
inline

Definition at line 25 of file RTPPortManager.hxx.

◆ getNumFreePortPairs()

unsigned int resip::RTPPortManager::getNumFreePortPairs ( )
inline

Definition at line 26 of file RTPPortManager.hxx.


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