diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-16 14:05:27 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-16 14:05:27 +0300 |
commit | 3627d42af059a52d2095efc783550fe589d68bcb (patch) | |
tree | 0ae26f664591260fa4e7754c2af9e4e45419e48a /server/src/main.cpp | |
parent | 04edaab436dae1747270d7d10c0586a2a4c222bf (diff) |
server:
some initial work on authentification part
client-qt:
some initial work on authentification part
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r-- | server/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp index 30126fa..2786435 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -38,7 +38,7 @@ modules_handler *modules = nullptr; namespace bpo = boost::program_options; -std::map<std::string, client> clients; //auth token used for key +std::map<std::string, client*> clients; //auth token used for key runtime_config_s runtime_config; @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) boost::asio::io_service io_service_server; try{ //TODO: server options ip address, interface name - serv = new server(io_service_server, runtime_config.config_file.get<int>("server.port", 6613)); + serv = new server(io_service_server, runtime_config, clients, runtime_config.config_file.get<int>("server.port", 6613)); } catch(std::exception &e) { |