MCPcopy Create free account
hub / github.com/amule-project/amule / ComparePriorUserhash

Method ComparePriorUserhash

src/ClientList.cpp:461–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459
460
461bool CClientList::ComparePriorUserhash(uint32 dwIP, uint16 nPort, void* pNewHash)
462{
463 std::map<uint32, CDeletedClient*>::iterator it = m_trackedClientsList.find( dwIP );
464
465 if ( it != m_trackedClientsList.end() ) {
466 CDeletedClient* pResult = it->second;
467
468 CDeletedClient::PaHList::iterator it2 = pResult->m_ItemsList.begin();
469 for ( ; it2 != pResult->m_ItemsList.end(); ++it2 ) {
470 if ( it2->nPort == nPort ) {
471 if ( it2->pHash != pNewHash) {
472 return false;
473 } else {
474 break;
475 }
476 }
477 }
478 }
479 return true;
480}
481
482
483void CClientList::AddTrackClient(CUpDownClient* toadd)

Callers 1

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected