diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-17 11:03:39 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-17 11:03:39 -0800 |
commit | aa39b0dc24b221980f72280af8c47d2a88a71b90 (patch) | |
tree | 2f52e7cfc334773765805cfbff989968bcd55c96 /node | |
parent | 2160164e8c20d9e5cb5fb266ca69c040b7881252 (diff) | |
download | infinitytier-aa39b0dc24b221980f72280af8c47d2a88a71b90.tar.gz infinitytier-aa39b0dc24b221980f72280af8c47d2a88a71b90.zip |
Show paths as active or preferred in listpeers.
Diffstat (limited to 'node')
-rw-r--r-- | node/Path.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index c1fe68d4..c6de6612 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -266,6 +266,9 @@ public: return (p - startAt); } + inline bool operator==(const Path &p) const { return ((p._addr == _addr)&&(p._localAddress == _localAddress)); } + inline bool operator!=(const Path &p) const { return ((p._addr != _addr)||(p._localAddress != _localAddress)); } + private: uint64_t _lastSend; uint64_t _lastReceived; |