• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::ChokeAlgorithm

bt::ChokeAlgorithm Class Reference

#include <choker.h>

Inheritance diagram for bt::ChokeAlgorithm:

Inheritance graph
[legend]

List of all members.


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]

Get the optimisticly unchoked peer ID.

Definition at line 80 of file choker.h.


Member Data Documentation

Uint32 bt::ChokeAlgorithm::opt_unchoked_peer_id [protected]

Definition at line 58 of file choker.h.


The documentation for this class was generated from the following files:
  • choker.h
  • choker.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal