summaryrefslogtreecommitdiff
path: root/node/Multicaster.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-12-06 12:47:58 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-12-06 12:47:58 -0800
commite6f9ab929df19ba667441b005ae2b9771922a92c (patch)
tree802a618a96d18b30ac22c13e00000e6aeafe7f73 /node/Multicaster.hpp
parent18d1772bb472770517dd5f863849d0d08defd71c (diff)
downloadinfinitytier-e6f9ab929df19ba667441b005ae2b9771922a92c.tar.gz
infinitytier-e6f9ab929df19ba667441b005ae2b9771922a92c.zip
More speed stuff.
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r--node/Multicaster.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp
index e57f81fe..c6c2a209 100644
--- a/node/Multicaster.hpp
+++ b/node/Multicaster.hpp
@@ -203,6 +203,10 @@ private:
MulticastGroupMember() {}
MulticastGroupMember(const Address &a,uint64_t ts) : address(a),timestamp(ts) {}
+ inline bool operator<(const Address &a) const { return (address < a); }
+ inline bool operator==(const Address &a) const { return (address == a); }
+ inline bool operator!=(const Address &a) const { return (address != a); }
+
Address address;
uint64_t timestamp; // time of last notification
};