kget
bt::ChokeAlgorithm Class Reference
#include <choker.h>
Inheritance diagram for bt::ChokeAlgorithm:

Detailed Description
Base class for all choke algorithms.Definition at line 55 of file choker.h.
Public Member Functions | |
| ChokeAlgorithm () | |
| 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 |
| virtual | ~ChokeAlgorithm () |
Protected Attributes | |
| Uint32 | opt_unchoked_peer_id |
Constructor & Destructor Documentation
| bt::ChokeAlgorithm::ChokeAlgorithm | ( | ) |
Definition at line 44 of file choker.cpp.
| bt::ChokeAlgorithm::~ChokeAlgorithm | ( | ) | [virtual] |
Definition at line 48 of file choker.cpp.
Member Function Documentation
| virtual void bt::ChokeAlgorithm::doChokingLeechingState | ( | PeerManager & | pman, | |
| ChunkManager & | cman, | |||
| const TorrentStats & | stats | |||
| ) | [pure virtual] |
Do the actual choking when we are still downloading.
- Parameters:
-
pman The PeerManager cman The ChunkManager stats The torrent stats
Implemented in bt::AdvancedChokeAlgorithm.
| virtual void bt::ChokeAlgorithm::doChokingSeedingState | ( | PeerManager & | pman, | |
| ChunkManager & | cman, | |||
| const TorrentStats & | stats | |||
| ) | [pure virtual] |
Do the actual choking when we are seeding.
- Parameters:
-
pman The PeerManager cman The ChunkManager stats The torrent stats
Implemented in bt::AdvancedChokeAlgorithm.
| Uint32 bt::ChokeAlgorithm::getOptimisticlyUnchokedPeerID | ( | ) | const [inline] |
Member Data Documentation
Uint32 bt::ChokeAlgorithm::opt_unchoked_peer_id [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference