kget
bt::Choker Class Reference
#include <choker.h>
Detailed Description
Handles the choking
This class handles the choking and unchoking of Peer's. This class needs to be updated every 10 seconds.
Definition at line 92 of file choker.h.
Public Member Functions | |
| Choker (PeerManager &pman, ChunkManager &cman) | |
| Uint32 | getOptimisticlyUnchokedPeerID () const |
| void | update (bool have_all, const TorrentStats &stats) |
| virtual | ~Choker () |
Static Public Member Functions | |
| static Uint32 | getNumUploadSlots () |
| static void | setNumUploadSlots (Uint32 n) |
Constructor & Destructor Documentation
| bt::Choker::Choker | ( | PeerManager & | pman, | |
| ChunkManager & | cman | |||
| ) |
Definition at line 57 of file choker.cpp.
| bt::Choker::~Choker | ( | ) | [virtual] |
Definition at line 63 of file choker.cpp.
Member Function Documentation
| static Uint32 bt::Choker::getNumUploadSlots | ( | ) | [inline, static] |
| Uint32 bt::Choker::getOptimisticlyUnchokedPeerID | ( | ) | const [inline] |
| static void bt::Choker::setNumUploadSlots | ( | Uint32 | n | ) | [inline, static] |
| void bt::Choker::update | ( | bool | have_all, | |
| const TorrentStats & | stats | |||
| ) |
Update which peers are choked or not.
- Parameters:
-
have_all Indicates whether we have the entire file stats Statistic of the torrent
Definition at line 68 of file choker.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference