src/private/PZGHeartbeatThreadState.cpp
bool PZGHeartbeatThreadState :: PeersListMatchesIgnoreOrdering(const Queue<ConstPZGHeartbeatPeerInfoRef> & infoQ) const
{
   if (infoQ.GetNumItems() != _peerIDToIPAddresses.GetNumItems()) return false;
   for (uint32 i=0; i<infoQ.GetNumItems(); i++) if (_peerIDToIPAddresses.ContainsKey(infoQ[i]()->GetPeerID()) == false) return false;
   return true;
}
// Returns true iff the ZGPeerIDs in (idQ) are the same as the keys in our own _peerIDToIPAddresses list (ordering doesn't matter)
Returns true iff the ZGPeerIDs in (idQ) are the same as the keys in our own _peerIDToIPAddresses list (ordering doesn't matter)
Returns true iff the ZGPeerIDs in ( idQ ) are the same as the keys in our own _peerIDToIPAddresses list ( ordering doesn ' t matter )
bool PZGHeartbeatThreadState :: PeersListMatchesIgnoreOrdering(const Queue<ConstPZGHeartbeatPeerInfoRef> & infoQ) const
{
   if (infoQ.GetNumItems() != _peerIDToIPAddresses.GetNumItems()) return false;
   for (uint32 i=0; i<infoQ.GetNumItems(); i++) if (_peerIDToIPAddresses.ContainsKey(infoQ[i]()->GetPeerID()) == false) return false;
   return true;
}
bool PZGHeartbeatThreadState :: PeersListMatchesIgnoreOrdering ( const Queue < ConstPZGHeartbeatPeerInfoRef > & infoQ ) const { if ( infoQ . GetNumItems ( ) != _peerIDToIPAddresses . GetNumItems ( ) ) return false ; for ( uint32 i = 0 ; i < infoQ . GetNumItems ( ) ; i ++ ) if ( _peerIDToIPAddresses . ContainsKey ( infoQ [ i ] ( ) -> GetPeerID ( ) ) == false ) return false ; return true ; }
Returns true iff the ZGPeerIDs in (idQ) are the same as the keys in our own _peerIDToIPAddresses list (ordering doesn't matter)
Returns true iff the ZGPeerIDs in ( idQ ) are the same as the keys in our own _peerIDToIPAddresses list ( ordering doesn ' t matter )