From 3af55f4423ab527a7366a56d552a4641560bc6f2 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 8 Aug 2013 17:20:35 -0400 Subject: Add RateLimiter for rate limiting multicast, not tested yet. --- node/Multicaster.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/Multicaster.hpp') 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 MulticastMembership; + // Network : MulticastGroup -> vector
std::map< MulticastChannel,std::vector > _multicastMemberships; Mutex _multicastMemberships_m; }; -- cgit v1.2.3