diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-01 12:41:48 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-01 12:41:48 -0700 |
| commit | ae082c3cb8a1ba7f8efb95ce690b012ffa7a79cd (patch) | |
| tree | 1b4eacab0989aa6423cc1e617393fe0586eb6938 /node/Network.hpp | |
| parent | ea6124dd2f48cafd8333d03705a8c8a9c201553d (diff) | |
| download | infinitytier-ae082c3cb8a1ba7f8efb95ce690b012ffa7a79cd.tar.gz infinitytier-ae082c3cb8a1ba7f8efb95ce690b012ffa7a79cd.zip | |
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.
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 |
