Accept supernode dictionaries in Topology, also fix (unused) field name in one of these.

This commit is contained in:
Adam Ierymenko 2014-08-14 18:06:18 -04:00
parent f8d4611d15
commit be6b61b1bc
3 changed files with 34 additions and 1 deletions

View file

@ -48,6 +48,7 @@
namespace ZeroTier {
class RuntimeEnvironment;
class Dictionary;
/**
* Database of network topology
@ -65,6 +66,16 @@ public:
*/
void setSupernodes(const std::map< Identity,std::vector< std::pair<InetAddress,bool> > > &sn);
/**
* Set up supernodes for this network
*
* This performs no signature verification of any kind. The caller must
* check the signature of the root topology dictionary first.
*
* @param sn Supernodes dictionary from root-topology
*/
void setSupernodes(const Dictionary &sn);
/**
* Add a peer to database
*