35 lines
757 B
C++
35 lines
757 B
C++
|
|
#include "RemoteServerService.hpp"
|
|
|
|
namespace Service {
|
|
|
|
RemoteServerService::RemoteServerService(const Remote::Server::Server::endpoint_type& endpoint, boost::filesystem::path dbPath)
|
|
: _server(endpoint, dbPath)
|
|
{
|
|
}
|
|
|
|
void
|
|
RemoteServerService::start(void)
|
|
{
|
|
std::cout << "RemoteServerService::start, starting..." << std::endl;
|
|
_server.start();
|
|
std::cout << "RemoteServerService::start, started!" << std::endl;
|
|
}
|
|
|
|
|
|
void
|
|
RemoteServerService::stop(void)
|
|
{
|
|
std::cout << "RemoteServerService::stop, stopping..." << std::endl;
|
|
_server.stop();
|
|
std::cout << "RemoteServerService::stop, stopped!" << std::endl;
|
|
}
|
|
|
|
void
|
|
RemoteServerService::restart(void)
|
|
{
|
|
std::cout << "RemoteServerService::restart, not implemented!" << std::endl;
|
|
}
|
|
|
|
} // namespace Service
|