}
/**
- Gets a connection by id
+ @brief Gets a connection by id
- \param conn_id Connection ID
+ @param conn_id Connection ID
- \retval Pointer to connection object
+ @retval Pointer to connection object
*/
server_connection* server::get_connection(unsigned int conn_id)
{
return p->second;
}
+/// check for timeouts, remove closed connections. don't forget to call this from time to time.
void server::cleanup()
{
std::map<unsigned int, server_connection*>::iterator ie=connections.end();