Work in progress on Cluster for new root infrastructure, multi-homing.

This commit is contained in:
Adam Ierymenko
2015-10-14 14:12:12 -07:00
parent c312ae221f
commit 619e113748
10 changed files with 794 additions and 16 deletions

View File

@ -78,6 +78,24 @@ public:
*/
SharedPtr<Peer> getPeer(const Address &zta);
/**
* Get the identity of a peer
*
* @param zta ZeroTier address of peer
* @return Identity or NULL Identity if not found
*/
Identity getIdentity(const Address &zta);
/**
* Cache an identity
*
* This is done automatically on addPeer(), and so is only useful for
* cluster identity replication.
*
* @param id Identity to cache
*/
void saveIdentity(const Identity &id);
/**
* @return Vector of peers that are root servers
*/
@ -210,7 +228,6 @@ public:
private:
Identity _getIdentity(const Address &zta);
void _saveIdentity(const Identity &id);
void _setWorld(const World &newWorld);
const RuntimeEnvironment *RR;