diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-25 18:36:54 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-25 18:36:54 +0200 |
commit | 683d2cb48c4f3620fc3be68ba97b2d3bb5a40e30 (patch) | |
tree | 8c0ae6438f6ec706a170eb41f683d6c91dc4a800 /server.h | |
parent | b2c34d03399978a3d0838ee7ed92c760e7908721 (diff) |
Added statistics
Diffstat (limited to 'server.h')
-rw-r--r-- | server.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include "config.h" #include "plugin.h" +#include "statistics.h" using namespace std::string_literals; @@ -15,11 +16,12 @@ protected: boost::asio::io_context& m_ioc; const Socket& m_socket; plugins_container_type& m_plugins; + Statistics& m_statistics; public: static const std::string VersionString; - Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& m_plugins); + Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& plugins, Statistics& statistics); virtual ~Server(); virtual int start() = 0; @@ -28,6 +30,7 @@ public: Config& GetConfig(); const Socket& GetSocket(); plugin_type GetPlugin(const std::string& name); + Statistics& GetStatistics(); }; int run_server(Config& config, plugins_container_type& plugins); |