WIP. Add config parameters for Remote service

This commit is contained in:
emeric
2014-08-22 22:57:19 +02:00
parent 8f8beb6237
commit 804b88ac50
8 changed files with 32 additions and 14 deletions
+5 -1
View File
@@ -4,7 +4,11 @@
namespace Service {
RemoteServerService::RemoteServerService(const Config& config)
: _server(boost::asio::ip::tcp::endpoint(config.address, config.port), config.dbPath)
: _server(boost::asio::ip::tcp::endpoint(config.address, config.port),
config.sslCertificatePath,
config.sslPrivateKeyPath,
config.sslTempDhPath,
config.dbPath)
{
}
+3
View File
@@ -18,6 +18,9 @@ class RemoteServerService : public Service
bool enable;
boost::asio::ip::address address;
unsigned short port;
boost::filesystem::path sslCertificatePath;
boost::filesystem::path sslPrivateKeyPath;
boost::filesystem::path sslTempDhPath;
boost::filesystem::path dbPath;
};