summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-22 15:03:16 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-22 15:03:16 -0700
commitc49e253e214d2d522b58053c6a09c33ba2dd814c (patch)
tree086c617d2b486b08b8de11aec50da9b2851ec7b9 /node
parent954f9cbc13ab9cf01f6d3efffb3aa5e8a95c0307 (diff)
downloadinfinitytier-c49e253e214d2d522b58053c6a09c33ba2dd814c.tar.gz
infinitytier-c49e253e214d2d522b58053c6a09c33ba2dd814c.zip
.
Diffstat (limited to 'node')
-rw-r--r--node/OutboundMulticast.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/node/OutboundMulticast.hpp b/node/OutboundMulticast.hpp
index 9771867d..f8338b93 100644
--- a/node/OutboundMulticast.hpp
+++ b/node/OutboundMulticast.hpp
@@ -87,6 +87,12 @@ public:
inline uint64_t timestamp() const throw() { return _timestamp; }
/**
+ * @param now Current time
+ * @return True if this multicast is expired (has exceeded transmit timeout)
+ */
+ inline bool expired(uint64_t now) const throw() { return ((now - _timestamp) >= ZT_MULTICAST_TRANSMIT_TIMEOUT); }
+
+ /**
* @return Number of unique recipients to which this packet has already been sent
*/
inline unsigned int sendCount() const throw() { return (unsigned int)_alreadySentTo.size(); }