diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-15 12:49:00 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-15 12:49:00 +0300 |
commit | f4750dc7ca9ce56c54352c03bb40affe1a64c315 (patch) | |
tree | e5ff58ae92b0c49f5624644611ea05312eebe1ed /server/include/server.h | |
parent | 1d6ced38a89547aaf2cc3745876360f0e5086474 (diff) |
client-qt:
implemented handler for SERVER_DOWNLOAD_INFO_REPLY
server:
api:
removed core_id field from download_internal_s as it always used for index in download map
some useful coments
core:
improoved signal handler a bit
fiexd bug in core_api metadata related functions (metadata_set, metadata_get, metadata_remove), now thay returning correct data
basic implementation of CLIENT_DOWNLOAD_ADD handler
basic implementation of module unloading
curl_downloader_module:
implemented metadata storing
some sanity checks
curl_download structure refactored a bit (simplification)
Diffstat (limited to 'server/include/server.h')
-rw-r--r-- | server/include/server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/include/server.h b/server/include/server.h index 046628a..812406a 100644 --- a/server/include/server.h +++ b/server/include/server.h @@ -37,6 +37,10 @@ class server { public: 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); + void terminate() + { + io_service_.stop(); + } private: void start_accept(); |