summaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-10 05:37:46 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-10 05:37:46 +0300
commite1af22ed0574dba892f2720e1f4d8e089a2d143e (patch)
tree79cae94d07446171b3880c775302bce3f2d16d2f /server/src/main.cpp
parent704bf55df5fae51bf0e8d86679ee7f34e22553d2 (diff)
server:
setting for port
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index efbd92b..3d3d0c4 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -166,8 +166,8 @@ int main(int argc, char *argv[])
}
boost::asio::io_service io_service_server;
try{
- //TODO: server options (ssl, ...)
- serv = new server(io_service_server, 6613);
+ //TODO: server options ip address, interface name
+ serv = new server(io_service_server, runtime_config.config_file.get<int>("server.port", 6613));
}
catch(std::exception &e)
{
@@ -177,6 +177,7 @@ int main(int argc, char *argv[])
{
//TODO:
}
+ //TODO: run in separate thread
boost::system::error_code ec;
io_service_server.run(ec);
if(ec)