[WIP], adding server skeleton for remote mobile connections

This commit is contained in:
emeric
2014-03-27 14:06:43 +01:00
parent 7a36a746b9
commit 1aa17d517c
19 changed files with 405 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#include <algorithm>
#include <boost/bind.hpp>
#include "ConnectionManager.hpp"
namespace Remote {
namespace Server {
void
ConnectionManager::start(connection::pointer c)
{
_connections.insert(c);
c->start();
}
void
ConnectionManager::stop(connection::pointer c)
{
_connections.erase(c);
c->stop();
}
void
ConnectionManager::stop_all()
{
BOOST_FOREACH(connection::pointer c, _connections)
{
c->stop();
}
_connections.clear();
}
} // namespace Server
} // namespace Remote