diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-25 14:51:55 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-25 14:51:55 -0400 |
| commit | 942cc0ca215b378c093ffca338cb44f64e34ff97 (patch) | |
| tree | 7fed6474ad30431cd08a3d77cf6e1637261a6fe1 /node/Network.hpp | |
| parent | 010616e3ae2edcf294b0d4b8f0679fd94c6a1f2a (diff) | |
| download | infinitytier-942cc0ca215b378c093ffca338cb44f64e34ff97.tar.gz infinitytier-942cc0ca215b378c093ffca338cb44f64e34ff97.zip | |
Certificate of membership works now... had to fix multicast propagation so COM is pushed with multicast, which makes tremendous sense in retrospect.
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 696aa84b..a219cdf2 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -208,32 +208,6 @@ public: } /** - * Push membership certificate to a packed zero-terminated array of addresses - * - * This pushes to all peers in peers[] (length must be a multiple of 5) until - * len is reached or a null address is encountered. - * - * @param peers Packed array of 5-byte big-endian addresses - * @param len Length of peers[] in total (bytes, not addresses) - * @param force If true, push even if we've already done so within required time frame - * @param now Current time - */ - inline void pushMembershipCertificate(const void *peers,unsigned int len,bool force,uint64_t now) - { - Mutex::Lock _l(_lock); - if ((_config)&&(!_config->isOpen())&&(_config->com())) { - for(unsigned int i=0;i<len;i+=ZT_ADDRESS_LENGTH) { - if ((i + ZT_ADDRESS_LENGTH) > len) - break; - Address a((char *)peers + i,ZT_ADDRESS_LENGTH); - if (a) - _pushMembershipCertificate(a,force,now); - else break; - } - } - } - - /** * @param peer Peer address to check * @return True if peer is allowed to communicate on this network */ |
