diff options
Diffstat (limited to 'node/Topology.hpp')
| -rw-r--r-- | node/Topology.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/Topology.hpp b/node/Topology.hpp index 48e264a8..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 @@ -225,6 +230,11 @@ public: return _peers.entries(); } + /** + * @return True if I am a root server in the current World + */ + inline bool amRoot() const throw() { return _amRoot; } + private: Identity _getIdentity(const Address &zta); void _setWorld(const World &newWorld); |
