|
libktorrent
2.1.1
|
#include <chunkselector.h>

Public Member Functions | |
| void | dataChecked (const bt::BitSet &ok_chunks, bt::Uint32 from, bt::Uint32 to) override |
| void | init (ChunkManager *cman, Downloader *downer, PeerManager *pman) override |
| void | reincluded (Uint32 from, Uint32 to) override |
| void | reinsert (Uint32 chunk) override |
| bool | select (PieceDownloader *pd, Uint32 &chunk) override |
| bool | selectRange (Uint32 &from, Uint32 &to, Uint32 max_len) override |
Protected Member Functions | |
| Uint32 | leastPeers (const std::list< Uint32 > &lp, Uint32 alternative, Uint32 max_peers_per_chunk) |
Additional Inherited Members | |
Protected Attributes inherited from bt::ChunkSelectorInterface | |
| ChunkManager * | cman |
| Downloader * | downer |
| PeerManager * | pman |
Selects which Chunks to download.
Definition at line 60 of file chunkselector.h.
|
overridevirtual |
Data has been checked, and these chunks are OK.
| ok_chunks | The ok_chunks |
Implements bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
|
overridevirtual |
Initialize the chunk selector, will be called automatically when the ChunkSelector is set.
| cman | The ChunkManager |
| downer | The Downloader |
| pman | The PeerManager |
Reimplemented from bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
|
overridevirtual |
A range of chunks has been reincluded.
| from | The first chunk |
| to | The last chunk |
Implements bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
|
overridevirtual |
Reinsert a chunk.
| chunk | The chunk |
Implements bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
|
overridevirtual |
Select which chunk to download for a PieceDownloader.
| pd | The PieceDownloader |
| chunk | Index of chunk gets stored here |
Implements bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
|
overridevirtual |
Select a range of chunks to download from a webseeder.
| from | First chunk of the range |
| to | Last chunk of the range |
| max_len | Maximum length of range |
Reimplemented from bt::ChunkSelectorInterface.
Reimplemented in bt::StreamingChunkSelector.
1.8.18