libktorrent
2.2.0
|
Handles the choking. More...
#include <choker.h>
Public Member Functions | |
Choker (PeerManager &pman, ChunkManager &cman) | |
Uint32 | getOptimisticlyUnchokedPeerID () const |
Get the PeerID of the optimisticly unchoked peer. | |
void | update (bool have_all, const TorrentStats &stats) |
Static Public Member Functions | |
static Uint32 | getNumUploadSlots () |
Get the number of upload slots. | |
static void | setNumUploadSlots (Uint32 n) |
Set the number of upload slots. | |
void bt::Choker::update | ( | bool | have_all, |
const TorrentStats & | stats | ||
) |
Update which peers are choked or not.
have_all | Indicates whether we have the entire file |
stats | Statistic of the torrent |