summaryrefslogtreecommitdiffstats
path: root/src/StatsServer.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-24 14:11:19 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-24 14:11:19 +0100
commitf75ac25e6e93ab167b5f3cfdecbbbf286fdc4fed (patch)
tree6bcc8fe0786404fc3793dbfc53742b12380270c1 /src/StatsServer.h
parent63636d3d211b92e5adb9653db9b06b62278cb889 (diff)
downloaddabmux-f75ac25e6e93ab167b5f3cfdecbbbf286fdc4fed.tar.gz
dabmux-f75ac25e6e93ab167b5f3cfdecbbbf286fdc4fed.tar.bz2
dabmux-f75ac25e6e93ab167b5f3cfdecbbbf286fdc4fed.zip
Implement remote control and global_stats, and add to configuration
Diffstat (limited to 'src/StatsServer.h')
-rw-r--r--src/StatsServer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/StatsServer.h b/src/StatsServer.h
index 5bbf327..8462e6a 100644
--- a/src/StatsServer.h
+++ b/src/StatsServer.h
@@ -80,6 +80,7 @@ struct InputStat
class StatsServer
{
public:
+ StatsServer() : m_listenport(0), m_running(false) {}
StatsServer(int listen_port) :
m_listenport(listen_port),
m_running(true),
@@ -139,5 +140,8 @@ class StatsServer
mutable boost::mutex m_mutex;
};
+
+extern StatsServer* global_stats;
+
#endif