|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Manages open connections so that they may be cleanly stopped when the server needs to shut down, and counts them per client IP address (with turnManager, which counts all the servers' connections, for MaxTcpConnectionsPerIp). More...
#include <ConnectionManager.hxx>
Public Member Functions | |
| ConnectionManager (TurnManager &turnManager) | |
| ConnectionManager (const ConnectionManager &)=delete | |
| ConnectionManager & | operator= (const ConnectionManager &)=delete |
| void | start (ConnectionPtr c, const asio::ip::address &remoteAddress) |
| Add the specified connection, from remoteAddress, to the manager and start it - or, if remoteAddress already has as many connections as allowed, close it. | |
| void | stop (ConnectionPtr c) |
| Stop the specified connection. | |
| void | stopAll () |
| Stop all connections. | |
Manages open connections so that they may be cleanly stopped when the server needs to shut down, and counts them per client IP address (with turnManager, which counts all the servers' connections, for MaxTcpConnectionsPerIp).
Definition at line 14 of file ConnectionManager.hxx.
|
inlineexplicit |
Definition at line 18 of file ConnectionManager.hxx.
|
delete |
|
delete |
| void reTurn::ConnectionManager::start | ( | ConnectionPtr | c, |
| const asio::ip::address & | remoteAddress | ||
| ) |
Add the specified connection, from remoteAddress, to the manager and start it - or, if remoteAddress already has as many connections as allowed, close it.
Definition at line 10 of file ConnectionManager.cxx.
| void reTurn::ConnectionManager::stop | ( | ConnectionPtr | c | ) |
Stop the specified connection.
Definition at line 22 of file ConnectionManager.cxx.
| void reTurn::ConnectionManager::stopAll | ( | ) |
Stop all connections.
Definition at line 34 of file ConnectionManager.cxx.