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

Method ProcessAICHFileHash

src/DownloadClient.cpp:1718–1733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718void CUpDownClient::ProcessAICHFileHash(CMemFile* data, const CPartFile* file){
1719 CPartFile* pPartFile;
1720 if (file == NULL){
1721 pPartFile = theApp->downloadqueue->GetFileByID(data->ReadHash());
1722 } else {
1723 pPartFile = const_cast<CPartFile*>(file);
1724 }
1725 CAICHHash ahMasterHash(data);
1726
1727 if(pPartFile != NULL && pPartFile == GetRequestFile()){
1728 SetReqFileAICHHash(new CAICHHash(ahMasterHash));
1729 pPartFile->GetAICHHashset()->UntrustedHashReceived(ahMasterHash, GetConnectIP());
1730 } else {
1731 AddDebugLogLineN( logAICHTransfer, "ProcessAICHFileHash(): PartFile not found or Partfile differs from requested file, " + GetClientFullInfo() );
1732 }
1733}
1734// File_checked_for_headers

Callers 1

ProcessExtPacketMethod · 0.80

Calls 4

UntrustedHashReceivedMethod · 0.80
GetAICHHashsetMethod · 0.80
GetFileByIDMethod · 0.45
ReadHashMethod · 0.45

Tested by

no test coverage detected