From ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sun, 5 Oct 2014 10:34:25 -0700 Subject: Bump version to 1.0.0, add legacy support code to Multicaster to not send new frame to known-to-be-old peers. --- node/Multicaster.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'node/Multicaster.hpp') 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
getLegacySubscribers(uint64_t nwid,const MulticastGroup &mg) const; /** * Send a multicast -- cgit v1.2.3