Get the next part that is requested
| 1345 | |
| 1346 | // Get the next part that is requested |
| 1347 | uint16 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 | |
| 1363 | void CUpDownClient::UpdateDisplayedInfo(bool force) |