From 683d2cb48c4f3620fc3be68ba97b2d3bb5a40e30 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 25 Apr 2020 18:36:54 +0200 Subject: Added statistics --- server.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server.h') diff --git a/server.h b/server.h index 11a8826..096f7f6 100644 --- a/server.h +++ b/server.h @@ -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); -- cgit v1.2.3