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

Method AddRequestForAnotherFile

src/DownloadClient.cpp:496–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496bool CUpDownClient::AddRequestForAnotherFile(CPartFile* file)
497{
498 if ( m_A4AF_list.find( file ) == m_A4AF_list.end() ) {
499 // When we access a non-existing entry entry, it will be zeroed by default,
500 // so we have to set NeededParts. All in one go.
501 m_A4AF_list[file].NeededParts = true;
502 file->AddA4AFSource( this );
503 return true;
504 } else {
505 return false;
506 }
507}
508
509bool CUpDownClient::DeleteFileRequest(CPartFile* file)
510{

Callers 2

CheckAndAddSourceMethod · 0.80

Calls 2

AddA4AFSourceMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected