From c49e253e214d2d522b58053c6a09c33ba2dd814c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 22 Sep 2014 15:03:16 -0700 Subject: [PATCH] . --- node/OutboundMulticast.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node/OutboundMulticast.hpp b/node/OutboundMulticast.hpp index 9771867d7..f8338b93d 100644 --- a/node/OutboundMulticast.hpp +++ b/node/OutboundMulticast.hpp @@ -86,6 +86,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 */