summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp26
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
*/