summaryrefslogtreecommitdiff
path: root/server/include/server.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
commit4b4002115d6c7b5c5113d1e2e6e9025565e1c9bb (patch)
tree4e4ecc6d26052bb5f50acd0c1a9260aceb5479fd /server/include/server.h
parent12eba4d75931c5e48dac70b1a7dbad7861d059df (diff)
protocol:
download struct must have module_name field server: core: implemented SERVER_DOWNLOADS_LIST_REPLY (draft) added global downloads list client: using std::string instead of QString to avoid unnecessary conversions
Diffstat (limited to 'server/include/server.h')
-rw-r--r--server/include/server.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/include/server.h b/server/include/server.h
index 699fb01..046628a 100644
--- a/server/include/server.h
+++ b/server/include/server.h
@@ -26,6 +26,7 @@
#include <boost/asio/ssl.hpp>
#include "config.h"
#include "client.h"
+#include "download_internal.h"
//TODO ssl
@@ -35,7 +36,7 @@ class server_session;
class server
{
public:
- server(boost::asio::io_service& io_service, runtime_config_s &config, std::map<std::string, client*> &clients, short port);
+ server(boost::asio::io_service& io_service, runtime_config_s &config, std::map<std::string, client*> &clients, std::map<int, download_internal_s> &downloads, short port);
private:
void start_accept();
@@ -46,6 +47,7 @@ private:
boost::asio::ssl::context *context_;
runtime_config_s &runtime_config;
std::map<std::string, client*> &clients;
+ std::map<int, download_internal_s> &downloads;
};