| 459 | |
| 460 | |
| 461 | bool 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 | |
| 483 | void CClientList::AddTrackClient(CUpDownClient* toadd) |
no test coverage detected