diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-03 18:42:41 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-03 18:42:41 -0700 |
commit | 3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4 (patch) | |
tree | 2c4803f18fa1468681f567e3b0878ec634e4c90b /node/Multicaster.hpp | |
parent | 496109fdcc5fc1f38ffbc561aceab8e8bfece03a (diff) | |
download | infinitytier-3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4.tar.gz infinitytier-3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4.zip |
Do not multicast to self.
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r-- | node/Multicaster.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index ae62456c..1fba5f64 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -109,6 +109,7 @@ public: * If zero is returned, the first two fields will still have been appended. * * @param RR Runtime environment + * @param queryingPeer Peer asking for gather (to skip in results) * @param nwid Network ID * @param mg Multicast group * @param appendTo Packet to append to @@ -116,7 +117,7 @@ public: * @return Number of addresses appended * @throws std::out_of_range Buffer overflow writing to packet */ - unsigned int gather(const RuntimeEnvironment *RR,uint64_t nwid,MulticastGroup &mg,Packet &appendTo,unsigned int limit) const; + unsigned int gather(const RuntimeEnvironment *RR,const Address &queryingPeer,uint64_t nwid,MulticastGroup &mg,Packet &appendTo,unsigned int limit) const; /** * Send a multicast |