summaryrefslogtreecommitdiffstats
path: root/wsd/Admin.hpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-04-18 19:20:54 +0100
committerJan Holesovsky <kendy@collabora.com>2018-05-18 15:16:39 +0200
commitb483f477ddfc20d936a7e202449911c4ec6b525b (patch)
treec2f23f66c2b7502b9dcf8f5a13de2be652992475 /wsd/Admin.hpp
parentserve files with old gith hash in their path, that comes from cached discover... (diff)
downloadonline-b483f477ddfc20d936a7e202449911c4ec6b525b.tar.gz
online-b483f477ddfc20d936a7e202449911c4ec6b525b.zip
Allow a 'monitor' to be connected to remotely if configured.
So far monitors have the access an permissions of an authenticated admin. Change-Id: I59dfa8a646a60584a5c113ee0521e9afba4f6b76
Diffstat (limited to 'wsd/Admin.hpp')
-rw-r--r--wsd/Admin.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp
index 49107d5c9c..fbd15f8ac5 100644
--- a/wsd/Admin.hpp
+++ b/wsd/Admin.hpp
@@ -23,6 +23,8 @@ class Admin;
class AdminSocketHandler : public WebSocketHandler
{
public:
+ AdminSocketHandler(Admin* adminManager);
+
AdminSocketHandler(Admin* adminManager,
const std::weak_ptr<StreamSocket>& socket,
const Poco::Net::HTTPRequest& request);
@@ -130,6 +132,9 @@ private:
return ((value + MinStatsIntervalMs - 1) / MinStatsIntervalMs) * MinStatsIntervalMs;
}
+ /// Synchronous connection setup to remote monitoring server
+ void connectToMonitor(const Poco::URI &uri);
+
private:
/// The model is accessed only during startup & in
/// the Admin Poll thread.