summaryrefslogtreecommitdiffhomepage
path: root/server.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-25 18:36:54 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-25 18:36:54 +0200
commit683d2cb48c4f3620fc3be68ba97b2d3bb5a40e30 (patch)
tree8c0ae6438f6ec706a170eb41f683d6c91dc4a800 /server.h
parentb2c34d03399978a3d0838ee7ed92c760e7908721 (diff)
Added statistics
Diffstat (limited to 'server.h')
-rw-r--r--server.h5
1 files changed, 4 insertions, 1 deletions
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);