summaryrefslogtreecommitdiff
path: root/node/Switch.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 00:04:44 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 00:04:44 -0800
commitd9e4ba1280bc5aec5d4cc04c4c495ac9c923563d (patch)
tree16ab7da1b55151ac73d2d0e6db0698a0921ab756 /node/Switch.hpp
parentdcb1233b0d5478f2f544a99cf24314155e711050 (diff)
downloadinfinitytier-d9e4ba1280bc5aec5d4cc04c4c495ac9c923563d.tar.gz
infinitytier-d9e4ba1280bc5aec5d4cc04c4c495ac9c923563d.zip
Eliminate a little copypasta.
Diffstat (limited to 'node/Switch.hpp')
-rw-r--r--node/Switch.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node/Switch.hpp b/node/Switch.hpp
index ce1c40b3..9245c036 100644
--- a/node/Switch.hpp
+++ b/node/Switch.hpp
@@ -124,6 +124,7 @@ public:
unsigned long doTimerTasks(uint64_t now);
private:
+ bool _shouldUnite(const uint64_t now,const Address &source,const Address &destination);
Address _sendWhoisRequest(const Address &addr,const Address *peersAlreadyConsulted,unsigned int numPeersAlreadyConsulted);
bool _trySend(Packet &packet,bool encrypt); // packet is modified if return is true