diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-03 18:27:42 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-03 18:27:42 -0700 |
| commit | 496109fdcc5fc1f38ffbc561aceab8e8bfece03a (patch) | |
| tree | 083076ebbc7798a649296dbd72fa771361c5fb60 /node/Network.hpp | |
| parent | aad344bb843c74a5ec8cdf0e8fb626cb6feb4e0c (diff) | |
| download | infinitytier-496109fdcc5fc1f38ffbc561aceab8e8bfece03a.tar.gz infinitytier-496109fdcc5fc1f38ffbc561aceab8e8bfece03a.zip | |
Announce multicast group changes on network rescanMulticastGroups()
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 14 |
1 files changed, 2 insertions, 12 deletions
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 @@ -164,16 +164,6 @@ public: } /** - * @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 * * @param conf Configuration in NetworkConfig form |
