From 52c3b7c34e52534ab4f3c92b28d65f8713cda299 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Apr 2015 11:56:10 -0700 Subject: Implemented empirical determination of external addressing, paritioned per scope. --- node/Topology.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'node/Topology.cpp') diff --git a/node/Topology.cpp b/node/Topology.cpp index 8b3d2e71..295c3c8a 100644 --- a/node/Topology.cpp +++ b/node/Topology.cpp @@ -253,36 +253,6 @@ void Topology::clean(uint64_t now) } } -/* -bool Topology::updateSurface(const SharedPtr &remotePeer,const InetAddress &mirroredAddress,uint64_t now) -{ - Mutex::Lock _l(_lock); - - if (std::find(_supernodeAddresses.begin(),_supernodeAddresses.end(),remotePeer->address()) == _supernodeAddresses.end()) - return false; - - if (_surface.update(mirroredAddress)) { - // Clear non-fixed paths for all peers -- will force reconnect on next activity - for(std::map< Address,SharedPtr >::const_iterator ap(_activePeers.begin());ap!=_activePeers.end();++ap) - ap->second->clearPaths(false); - - // Reset TCP tunneling if our global addressing has changed - if (!mirroredAddress.isLinkLocal()) - (const_cast (RR))->tcpTunnelingEnabled = false; - - // Ping supernodes now (other than the one we might have just heard from) - for(std::vector< SharedPtr >::const_iterator sn(_supernodePeers.begin());sn!=_supernodePeers.end();++sn) { - if (remotePeer != *sn) - (*sn)->sendPing(RR,now); - } - - return true; - } - - return false; -} -*/ - bool Topology::authenticateRootTopology(const Dictionary &rt) { try { -- cgit v1.2.3