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

Method ECPartFileMsgSource

src/ExternalConn.cpp:2372–2382  ·  view source on GitHub ↗

* Downloading files */

Source from the content-addressed store, hash-verified

2370 * Downloading files
2371*/
2372ECPartFileMsgSource::ECPartFileMsgSource()
2373{
2374 std::vector<CPartFile*> snapshot;
2375 theApp->downloadqueue->CopyFileList(snapshot);
2376 for (std::vector<CPartFile*>::const_iterator it = snapshot.begin();
2377 it != snapshot.end(); ++it) {
2378 CPartFile *cur_file = *it;
2379 PARTFILE_STATUS status = { true, false, false, false, true, cur_file };
2380 m_dirty_status[cur_file->GetFileHash()] = status;
2381 }
2382}
2383
2384void ECPartFileMsgSource::SetDirty(const CPartFile *file)
2385{

Callers

nothing calls this directly

Calls 3

CopyFileListMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected