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 4b184be6..1d8b92c6 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -164,6 +164,16 @@ public: } /** + * @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 * * This is called in IncomingPacket when an update comes over the wire, or |
