mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
docs
This commit is contained in:
parent
5341e32729
commit
ecb6a1d84f
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ ZT1_ResultCode Node::processBackgroundTasks(uint64_t now,volatile uint64_t *next
|
||||||
// Request updated configuration for networks that need it
|
// Request updated configuration for networks that need it
|
||||||
for(std::vector< SharedPtr<Network> >::const_iterator n(needConfig.begin());n!=needConfig.end();++n)
|
for(std::vector< SharedPtr<Network> >::const_iterator n(needConfig.begin());n!=needConfig.end();++n)
|
||||||
(*n)->requestConfiguration();
|
(*n)->requestConfiguration();
|
||||||
|
|
||||||
// Attempt to contact network preferred relays that we don't have direct links to
|
// Attempt to contact network preferred relays that we don't have direct links to
|
||||||
std::sort(networkRelays.begin(),networkRelays.end());
|
std::sort(networkRelays.begin(),networkRelays.end());
|
||||||
std::unique(networkRelays.begin(),networkRelays.end());
|
std::unique(networkRelays.begin(),networkRelays.end());
|
||||||
|
@ -259,7 +259,7 @@ ZT1_ResultCode Node::processBackgroundTasks(uint64_t now,volatile uint64_t *next
|
||||||
rp->attemptToContactAt(RR,nr->second,now);
|
rp->attemptToContactAt(RR,nr->second,now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ping living or supernode/relay peers
|
// Ping living or supernode/relay peers
|
||||||
_PingPeersThatNeedPing pfunc(RR,now,networkRelays);
|
_PingPeersThatNeedPing pfunc(RR,now,networkRelays);
|
||||||
RR->topology->eachPeer<_PingPeersThatNeedPing &>(pfunc);
|
RR->topology->eachPeer<_PingPeersThatNeedPing &>(pfunc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue