Return self in GATHER requests if self is a member of multicast group, and reinstate legacy support.
This commit is contained in:
parent
4941c8a1f3
commit
56f8f8aa24
4 changed files with 63 additions and 49 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue