From 39333c9e8ef3a11fdf2ccad3a5bc7c17ce697bd6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 17 Nov 2016 16:59:04 -0800 Subject: Modify unite() to deal with a second layer of upstreams. --- node/Switch.hpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'node/Switch.hpp') diff --git a/node/Switch.hpp b/node/Switch.hpp index 7c903ef9..f44eef48 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -97,17 +97,6 @@ public: */ void send(const Packet &packet,bool encrypt); - /** - * Send RENDEZVOUS to two peers to permit them to directly connect - * - * This only works if both peers are known, with known working direct - * links to this peer. The best link for each peer is sent to the other. - * - * @param p1 One of two peers (order doesn't matter) - * @param p2 Second of pair - */ - bool unite(const Address &p1,const Address &p2); - /** * Request WHOIS on a given address * @@ -138,6 +127,7 @@ public: private: Address _sendWhoisRequest(const Address &addr,const Address *peersAlreadyConsulted,unsigned int numPeersAlreadyConsulted); bool _trySend(const Packet &packet,bool encrypt); + bool _unite(const Address &p1,const Address &p2); const RuntimeEnvironment *const RR; uint64_t _lastBeaconResponse; -- cgit v1.2.3