From 496109fdcc5fc1f38ffbc561aceab8e8bfece03a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 3 Oct 2014 18:27:42 -0700 Subject: Announce multicast group changes on network rescanMulticastGroups() --- node/Network.hpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'node/Network.hpp') diff --git a/node/Network.hpp b/node/Network.hpp index 7c21345e..90ac34d6 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -148,11 +148,11 @@ public: } /** - * Update multicast groups for this network's tap and announce changes + * Rescan multicast groups for this network's tap and update peers on change * * @return True if internal multicast group set has changed since last update */ - bool updateMulticastGroups(); + bool rescanMulticastGroups(); /** * @return Latest set of multicast groups for this network's tap @@ -163,16 +163,6 @@ public: return _myMulticastGroups; } - /** - * @param mg Multicast group - * @return True if this group is among those to which I am subscribed - */ - inline bool wantMulticastGroup(const MulticastGroup &mg) const - { - Mutex::Lock _l(_lock); - return (_myMulticastGroups.count(mg) > 0); - } - /** * Apply a NetworkConfig to this network * -- cgit v1.2.3