summaryrefslogtreecommitdiff
path: root/node/Multicaster.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 18:42:41 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-03 18:42:41 -0700
commit3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4 (patch)
tree2c4803f18fa1468681f567e3b0878ec634e4c90b /node/Multicaster.hpp
parent496109fdcc5fc1f38ffbc561aceab8e8bfece03a (diff)
downloadinfinitytier-3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4.tar.gz
infinitytier-3f7e7e8a88e4edb0a62def5efbe204d22bbff7a4.zip
Do not multicast to self.
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r--node/Multicaster.hpp3
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