summaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-10-27 05:44:22 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-10-27 05:44:22 +0300
commit3d2c1d3c24e40573e391040048ff734cd052c295 (patch)
treef5b72764a4431841b996df8540664b5167a6eed4 /server/src/main.cpp
parent89dbfd1a2e9cee5bb7c219ba121e7e922d7dfa7a (diff)
protocol:
tiny enum value names correction server: event subscription subsystem: a bit of implementation of repeated event type
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index 214b6b5..5ca4422 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -75,6 +75,8 @@ void sig_handler(int sig)
}
}
+boost::asio::io_service io_service_server;
+
extern "C" int main(int argc, char *argv[])
{
//handle signals
@@ -248,7 +250,6 @@ extern "C" int main(int argc, char *argv[])
{
//TODO: fork here
}
- boost::asio::io_service io_service_server;
try{
//TODO: server options ip address, interface name
serv = new server(io_service_server, runtime_config, clients, downloads, runtime_config.config_file.get<int>("server.port", 6613));