libktorrent
2.1.1
|
#include <choker.h>
Public Member Functions | |
virtual void | doChokingLeechingState (PeerManager &pman, ChunkManager &cman, const TorrentStats &stats)=0 |
virtual void | doChokingSeedingState (PeerManager &pman, ChunkManager &cman, const TorrentStats &stats)=0 |
Uint32 | getOptimisticlyUnchokedPeerID () const |
Get the optimisticly unchoked peer ID. | |
Protected Attributes | |
Uint32 | opt_unchoked_peer_id |
|
pure virtual |
Do the actual choking when we are still downloading.
pman | The PeerManager |
cman | The ChunkManager |
stats | The torrent stats |
Implemented in bt::AdvancedChokeAlgorithm.
|
pure virtual |
Do the actual choking when we are seeding
pman | The PeerManager |
cman | The ChunkManager |
stats | The torrent stats |
Implemented in bt::AdvancedChokeAlgorithm.