Announce multicast group changes on network rescanMulticastGroups()

This commit is contained in:
Adam Ierymenko 2014-10-03 18:27:42 -07:00
parent aad344bb84
commit 496109fdcc
6 changed files with 86 additions and 39 deletions

View file

@ -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
*