diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-08 17:20:35 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-08 17:20:35 -0400 |
commit | 3af55f4423ab527a7366a56d552a4641560bc6f2 (patch) | |
tree | 1dfa888032963a036575656832099d630eb33a75 /node/Multicaster.hpp | |
parent | 95c0790a88711ba1c3821df200e10c6841c3a0a9 (diff) | |
download | infinitytier-3af55f4423ab527a7366a56d552a4641560bc6f2.tar.gz infinitytier-3af55f4423ab527a7366a56d552a4641560bc6f2.zip |
Add RateLimiter for rate limiting multicast, not tested yet.
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r-- | node/Multicaster.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index 229b3c06..9c0795bd 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -63,6 +63,9 @@ namespace ZeroTier { * This is written as a generic class so that it can be mocked and tested * in simulation. It also always takes 'now' as an argument, permitting * running in simulated time. + * + * This does not handle network permission or rate limiting, only the + * propagation algorithm. */ class Multicaster { @@ -328,6 +331,7 @@ private: // Address and time of last LIKE typedef std::pair<Address,uint64_t> MulticastMembership; + // Network : MulticastGroup -> vector<Address : time of last LIKE> std::map< MulticastChannel,std::vector<MulticastMembership> > _multicastMemberships; Mutex _multicastMemberships_m; }; |