summaryrefslogtreecommitdiff
path: root/server/include/server.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-16 14:05:27 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-16 14:05:27 +0300
commit3627d42af059a52d2095efc783550fe589d68bcb (patch)
tree0ae26f664591260fa4e7754c2af9e4e45419e48a /server/include/server.h
parent04edaab436dae1747270d7d10c0586a2a4c222bf (diff)
server:
some initial work on authentification part client-qt: some initial work on authentification part
Diffstat (limited to 'server/include/server.h')
-rw-r--r--server/include/server.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/include/server.h b/server/include/server.h
index c4ccc97..699fb01 100644
--- a/server/include/server.h
+++ b/server/include/server.h
@@ -24,6 +24,8 @@
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
+#include "config.h"
+#include "client.h"
//TODO ssl
@@ -33,7 +35,7 @@ class server_session;
class server
{
public:
- server(boost::asio::io_service& io_service, short port);
+ server(boost::asio::io_service& io_service, runtime_config_s &config, std::map<std::string, client*> &clients, short port);
private:
void start_accept();
@@ -42,6 +44,8 @@ private:
boost::asio::io_service& io_service_;
boost::asio::ip::tcp::acceptor acceptor_;
boost::asio::ssl::context *context_;
+ runtime_config_s &runtime_config;
+ std::map<std::string, client*> &clients;
};