Return self in GATHER requests if self is a member of multicast group, and reinstate legacy support.

This commit is contained in:
Adam Ierymenko 2014-10-09 18:32:05 -07:00
parent 4941c8a1f3
commit 56f8f8aa24
4 changed files with 63 additions and 49 deletions

View file

@ -163,6 +163,16 @@ public:
return _myMulticastGroups;
}
/**
* @param mg Multicast group
* @return True if this network endpoint / peer is a member
*/
bool subscribedToMulticastGroup(const MulticastGroup &mg) const
{
Mutex::Lock _l(_lock);
return (_myMulticastGroups.find(mg) != _myMulticastGroups.end());
}
/**
* Apply a NetworkConfig to this network
*