WIP. Using WIOService to handle Services

This commit is contained in:
emeric
2014-08-05 13:11:31 +02:00
parent f26e6cad7c
commit 9fdc9f41dd
12 changed files with 148 additions and 65 deletions
+5 -3
View File
@@ -1,8 +1,8 @@
#include "RemoteServerService.hpp"
RemoteServerService::RemoteServerService(boost::asio::io_service& ioService, const Remote::Server::Server::endpoint_type& endpoint, boost::filesystem::path dbPath)
: _server(ioService, endpoint, dbPath)
RemoteServerService::RemoteServerService(const Remote::Server::Server::endpoint_type& endpoint, boost::filesystem::path dbPath)
: _server(endpoint, dbPath)
{
}
@@ -10,7 +10,8 @@ void
RemoteServerService::start(void)
{
std::cout << "RemoteServerService::start, starting..." << std::endl;
_server.run();
_server.start();
std::cout << "RemoteServerService::start, started!" << std::endl;
}
@@ -19,6 +20,7 @@ RemoteServerService::stop(void)
{
std::cout << "RemoteServerService::stop, stopping..." << std::endl;
_server.stop();
std::cout << "RemoteServerService::stop, stopped!" << std::endl;
}
void