summaryrefslogtreecommitdiff
path: root/node/Multicaster.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 22:30:10 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 22:30:10 -0700
commit62da7e67b64712fc5cfce771ff944057abff705b (patch)
treea119cc46936facdca7fcc317bd18f7dda66e7824 /node/Multicaster.hpp
parente7c81ef34e9db426d6ba72e2feae4180233631e5 (diff)
downloadinfinitytier-62da7e67b64712fc5cfce771ff944057abff705b.tar.gz
infinitytier-62da7e67b64712fc5cfce771ff944057abff705b.zip
Add some rate limiting to implicit gathers, and always send multicasts to at least one supernode so they can broadcast to old peers (temporary).
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r--node/Multicaster.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp
index 1fba5f64..6c117a10 100644
--- a/node/Multicaster.hpp
+++ b/node/Multicaster.hpp
@@ -72,9 +72,10 @@ private:
struct MulticastGroupStatus
{
- MulticastGroupStatus() : lastExplicitGather(0) {}
+ MulticastGroupStatus() : lastExplicitGather(0),lastImplicitGather(0) {}
- uint64_t lastExplicitGather; // time we last gathered members explicitly
+ uint64_t lastExplicitGather;
+ uint64_t lastImplicitGather;
std::list<OutboundMulticast> txQueue; // pending outbound multicasts
std::vector<MulticastGroupMember> members; // members of this group
};