| 570 | /* eMule 0.30c implementation, i give it a try (Creteil) END ... */ |
| 571 | |
| 572 | void CUpDownClient::ProcessHashSet(const uint8_t* packet, uint32 size) |
| 573 | { |
| 574 | if ((!m_reqfile) || md4cmp(packet,m_reqfile->GetFileHash().GetHash())) { |
| 575 | throw wxString("Wrong fileid sent (ProcessHashSet)"); |
| 576 | } |
| 577 | if (!m_fHashsetRequesting) { |
| 578 | throw wxString("Received unsolicited hashset, ignoring it."); |
| 579 | } |
| 580 | CMemFile data(packet,size); |
| 581 | if (m_reqfile->LoadHashsetFromFile(&data,true)) { |
| 582 | m_fHashsetRequesting = 0; |
| 583 | } else { |
| 584 | m_reqfile->SetHashSetNeeded(true); |
| 585 | throw wxString("Corrupted or invalid hashset received"); |
| 586 | } |
| 587 | SendStartupLoadReq(); |
| 588 | } |
| 589 | |
| 590 | void CUpDownClient::SendBlockRequests() |
| 591 | { |
no test coverage detected