diff options
Diffstat (limited to 'node/Network.hpp')
-rw-r--r-- | node/Network.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index a2a49584..169dc3fc 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -164,6 +164,16 @@ public: } /** + * @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 * * @param conf Configuration in NetworkConfig form |