summaryrefslogtreecommitdiff
path: root/node/Cluster.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 12:41:08 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 12:41:08 -0700
commit865acfa40f65626f41bbd718b645f57c7d6db9b2 (patch)
treecb7bb750148f101578f28eec54154c40ef3a0ba2 /node/Cluster.hpp
parent3ce5ad9e2c1a31e1a3cc34f0ac8d950e4f0cf7b4 (diff)
downloadinfinitytier-865acfa40f65626f41bbd718b645f57c7d6db9b2.tar.gz
infinitytier-865acfa40f65626f41bbd718b645f57c7d6db9b2.zip
Cluster status plumbing.
Diffstat (limited to 'node/Cluster.hpp')
-rw-r--r--node/Cluster.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/node/Cluster.hpp b/node/Cluster.hpp
index daa81185..be346659 100644
--- a/node/Cluster.hpp
+++ b/node/Cluster.hpp
@@ -254,6 +254,13 @@ public:
*/
bool redirectPeer(const Address &peerAddress,const InetAddress &peerPhysicalAddress,bool offload);
+ /**
+ * Fill out ZT_ClusterStatus structure (from core API)
+ *
+ * @param status Reference to structure to hold result (anything there is replaced)
+ */
+ void status(ZT_ClusterStatus &status) const;
+
private:
void _send(uint16_t memberId,StateMessageType type,const void *msg,unsigned int len);
void _flush(uint16_t memberId);