From ae082c3cb8a1ba7f8efb95ce690b012ffa7a79cd Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Oct 2014 12:41:48 -0700 Subject: Yay... now everything compiles! Getting close to testing on this. Still have not added backward compatibility support for relaying of multicasts to 0.9.X clients yet but that will be easy. Will test with heterogenous 1.0.0 clients only first. --- node/Network.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'node/Network.hpp') diff --git a/node/Network.hpp b/node/Network.hpp index 4b184be6..1d8b92c6 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -163,6 +163,16 @@ 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); + } + /** * Set or update this network's configuration * -- cgit v1.2.3