|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Collection of Connection per Transport. More...
#include <ConnectionManager.hxx>
Public Member Functions | |
| ConnectionManager () | |
| ~ConnectionManager () | |
| Connection * | findConnection (const Tuple &tuple) |
| may return 0 | |
| const Connection * | findConnection (const Tuple &tuple) const |
| void | setPollGrp (FdPollGrp *grp) |
| populate the fdset againt the read and write lists | |
| void | buildFdSet (FdSet &fdset) |
| void | process (FdSet &fdset) |
| virtual void | invokeAfterSocketCreationFunc () const |
Static Public Attributes | |
| static uint64_t | MinimumGcAge = 1 |
| connection must have no inbound traffic for greater than this time (in ms) before it is garbage collected | |
| static uint64_t | MinimumGcHeadroom = 0 |
| If the difference between the number of permitted FDs (reported by periodic calls to getrlimit()) and the number of active stream connections falls below this threshold, the garbage collector will overlook MinimumGcAge and more aggressively close connections. | |
| static bool | EnableAgressiveGc = false |
| Enable Agressive Connection Garbage Collection to have resip perform garbage collection on every new connection. | |
Friends | |
| class | Connection |
| class | TcpBaseTransport |
Collection of Connection per Transport.
Maintains round-robin orders for read and write. Maintains least-recently-used connections list for garbage collection.
Maintains mapping from Tuple to Connection.
Definition at line 19 of file ConnectionManager.hxx.
| ConnectionManager::ConnectionManager | ( | ) |
Definition at line 26 of file ConnectionManager.cxx.
| ConnectionManager::~ConnectionManager | ( | ) |
Definition at line 37 of file ConnectionManager.cxx.
| void ConnectionManager::buildFdSet | ( | FdSet & | fdset | ) |
Definition at line 135 of file ConnectionManager.cxx.
| Connection * ConnectionManager::findConnection | ( | const Tuple & | tuple | ) |
may return 0
Definition at line 56 of file ConnectionManager.cxx.
| const Connection * ConnectionManager::findConnection | ( | const Tuple & | tuple | ) | const |
Definition at line 98 of file ConnectionManager.cxx.
|
virtual |
Definition at line 471 of file ConnectionManager.cxx.
| void ConnectionManager::process | ( | FdSet & | fdset | ) |
Definition at line 396 of file ConnectionManager.cxx.
| void ConnectionManager::setPollGrp | ( | FdPollGrp * | grp | ) |
populate the fdset againt the read and write lists
Definition at line 461 of file ConnectionManager.cxx.
|
friend |
Definition at line 21 of file ConnectionManager.hxx.
|
friend |
Definition at line 91 of file ConnectionManager.hxx.
|
static |
Enable Agressive Connection Garbage Collection to have resip perform garbage collection on every new connection.
If disabled then garbage collection is only performed if we run out of Fd's
Definition at line 36 of file ConnectionManager.hxx.
|
static |
connection must have no inbound traffic for greater than this time (in ms) before it is garbage collected
Definition at line 26 of file ConnectionManager.hxx.
|
static |
If the difference between the number of permitted FDs (reported by periodic calls to getrlimit()) and the number of active stream connections falls below this threshold, the garbage collector will overlook MinimumGcAge and more aggressively close connections.
Definition at line 32 of file ConnectionManager.hxx.