diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-17 16:59:04 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-17 16:59:04 -0800 |
commit | 39333c9e8ef3a11fdf2ccad3a5bc7c17ce697bd6 (patch) | |
tree | 91353f20baa597921d042d2465f91ed66739922a /node/Switch.hpp | |
parent | 1615ef1114de4627e6952d96c62c1d561f8bd03c (diff) | |
download | infinitytier-39333c9e8ef3a11fdf2ccad3a5bc7c17ce697bd6.tar.gz infinitytier-39333c9e8ef3a11fdf2ccad3a5bc7c17ce697bd6.zip |
Modify unite() to deal with a second layer of upstreams.
Diffstat (limited to 'node/Switch.hpp')
-rw-r--r-- | node/Switch.hpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/node/Switch.hpp b/node/Switch.hpp index 7c903ef9..f44eef48 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -98,17 +98,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 * * @param addr Address to look up @@ -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; |