diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-26 12:41:08 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-26 12:41:08 -0700 |
commit | 865acfa40f65626f41bbd718b645f57c7d6db9b2 (patch) | |
tree | cb7bb750148f101578f28eec54154c40ef3a0ba2 /node/Topology.hpp | |
parent | 3ce5ad9e2c1a31e1a3cc34f0ac8d950e4f0cf7b4 (diff) | |
download | infinitytier-865acfa40f65626f41bbd718b645f57c7d6db9b2.tar.gz infinitytier-865acfa40f65626f41bbd718b645f57c7d6db9b2.zip |
Cluster status plumbing.
Diffstat (limited to 'node/Topology.hpp')
-rw-r--r-- | node/Topology.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Topology.hpp b/node/Topology.hpp index 324ec000..ee9827b9 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -193,6 +193,11 @@ public: void clean(uint64_t now); /** + * @return Number of 'alive' peers + */ + unsigned long countAlive() const; + + /** * Apply a function or function object to all peers * * Note: explicitly template this by reference if you want the object |