diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-05 10:34:25 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-05 10:34:25 -0700 |
commit | ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0 (patch) | |
tree | ff45aca809f4161dfd8c152f045536f0e6f220ef /node/Multicaster.hpp | |
parent | 10c196df50b10c4445ef0d7205da290fc78973d2 (diff) | |
download | infinitytier-ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0.tar.gz infinitytier-ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0.zip |
Bump version to 1.0.0, add legacy support code to Multicaster to not send new frame to known-to-be-old peers.
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r-- | node/Multicaster.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index 454f5c93..fd9c32d4 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -109,7 +109,6 @@ 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 @@ -118,7 +117,17 @@ public: * @return Number of addresses appended * @throws std::out_of_range Buffer overflow writing to packet */ - unsigned int gather(const RuntimeEnvironment *RR,const Address &queryingPeer,uint64_t nwid,MulticastGroup &mg,Packet &appendTo,unsigned int limit) const; + unsigned int gather(const Address &queryingPeer,uint64_t nwid,const MulticastGroup &mg,Packet &appendTo,unsigned int limit) const; + + /** + * Get known peers with versions <1.0.0 and that are not supernodes + * + * This is legacy peer compatibility code and will be removed later. + * + * @param nwid Network ID + * @param mg Multicast group + */ + std::vector<Address> getLegacySubscribers(uint64_t nwid,const MulticastGroup &mg) const; /** * Send a multicast |