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

Method GetNextRequestedPart

src/DownloadClient.cpp:1347–1360  ·  view source on GitHub ↗

Get the next part that is requested

Source from the content-addressed store, hash-verified

1345
1346// Get the next part that is requested
1347uint16 CUpDownClient::GetNextRequestedPart() const
1348{
1349 uint16 part = 0xffff;
1350
1351 std::list<Pending_Block_Struct*>::const_iterator it = m_PendingBlocks_list.begin();
1352 for (; it != m_PendingBlocks_list.end(); ++it) {
1353 part = (*it)->block->StartOffset / PARTSIZE;
1354 if (part != m_lastDownloadingPart) {
1355 break;
1356 }
1357 }
1358
1359 return part;
1360}
1361
1362
1363void CUpDownClient::UpdateDisplayedInfo(bool force)

Callers 2

DrawSourceStatusBarMethod · 0.45
CEC_UpDownClient_TagMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

CEC_UpDownClient_TagMethod · 0.36