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

Method ECKnownFileMsgSource

src/ExternalConn.cpp:2446–2456  ·  view source on GitHub ↗

* Shared files - similar to downloading */

Source from the content-addressed store, hash-verified

2444 * Shared files - similar to downloading
2445 */
2446ECKnownFileMsgSource::ECKnownFileMsgSource()
2447{
2448 std::vector<CKnownFile*> snapshot;
2449 theApp->sharedfiles->CopyFileList(snapshot);
2450 for (std::vector<CKnownFile*>::const_iterator it = snapshot.begin();
2451 it != snapshot.end(); ++it) {
2452 const CKnownFile *cur_file = *it;
2453 KNOWNFILE_STATUS status = { true, false, false, true, cur_file };
2454 m_dirty_status[cur_file->GetFileHash()] = status;
2455 }
2456}
2457
2458void ECKnownFileMsgSource::SetDirty(const CKnownFile *file)
2459{

Callers

nothing calls this directly

Calls 3

CopyFileListMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected