Adam Ierymenko 11 年之前
父节点
当前提交
c49e253e21
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      node/OutboundMulticast.hpp

+ 6 - 0
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
 	 */