From 4b4002115d6c7b5c5113d1e2e6e9025565e1c9bb Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 31 Aug 2015 20:45:06 +0300 Subject: 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 --- server/include/server.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/include/server.h') 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 #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 &clients, short port); + server(boost::asio::io_service& io_service, runtime_config_s &config, std::map &clients, std::map &downloads, short port); private: void start_accept(); @@ -46,6 +47,7 @@ private: boost::asio::ssl::context *context_; runtime_config_s &runtime_config; std::map &clients; + std::map &downloads; }; -- cgit v1.2.3