1#ifndef CONNECTION_MANAGER_HXX
2#define CONNECTION_MANAGER_HXX
36 std::map<ConnectionPtr, asio::ip::address> mConnections;
Manages open connections so that they may be cleanly stopped when the server needs to shut down,...
void stop(ConnectionPtr c)
Stop the specified connection.
ConnectionManager & operator=(const ConnectionManager &)=delete
ConnectionManager(TurnManager &turnManager)
ConnectionManager(const ConnectionManager &)=delete
void stopAll()
Stop all connections.
void start(ConnectionPtr c, const asio::ip::address &remoteAddress)
Add the specified connection, from remoteAddress, to the manager and start it - or,...
std::shared_ptr< AsyncSocketBase > ConnectionPtr