#include <chunkselectorinterface.h>
- Author
- Joris Guisson
Interface class for selecting chunks to download.
Definition at line 59 of file chunkselectorinterface.h.
◆ dataChecked()
virtual void bt::ChunkSelectorInterface::dataChecked |
( |
const BitSet & |
ok_chunks, |
|
|
Uint32 |
from, |
|
|
Uint32 |
to |
|
) |
| |
|
pure virtual |
◆ init()
◆ reincluded()
virtual void bt::ChunkSelectorInterface::reincluded |
( |
Uint32 |
from, |
|
|
Uint32 |
to |
|
) |
| |
|
pure virtual |
◆ reinsert()
virtual void bt::ChunkSelectorInterface::reinsert |
( |
Uint32 |
chunk | ) |
|
|
pure virtual |
Reinsert a chunk. This is called when a chunk is corrupted or downloading it failed (hash doesn't match) The selector should make sure that this is added again
- Parameters
-
Implemented in bt::ChunkSelector, and bt::StreamingChunkSelector.
◆ select()
virtual bool bt::ChunkSelectorInterface::select |
( |
PieceDownloader * |
pd, |
|
|
Uint32 & |
chunk |
|
) |
| |
|
pure virtual |
◆ selectRange()
virtual bool bt::ChunkSelectorInterface::selectRange |
( |
Uint32 & |
from, |
|
|
Uint32 & |
to, |
|
|
Uint32 |
max_len |
|
) |
| |
|
virtual |
Select a range of chunks to download from a webseeder.
- Parameters
-
from | First chunk of the range |
to | Last chunk of the range |
max_len | Maximum length of range |
- Returns
- true if everything is OK
Reimplemented in bt::ChunkSelector, and bt::StreamingChunkSelector.
The documentation for this class was generated from the following file: