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

kget

bt::Choker

bt::Choker Class Reference

#include <choker.h>

List of all members.


Detailed Description

Author:
Joris Guisson

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]

Get the number of upload slots.

Definition at line 116 of file choker.h.

Uint32 bt::Choker::getOptimisticlyUnchokedPeerID (  )  const [inline]

Get the PeerID of the optimisticly unchoked peer.

Definition at line 110 of file choker.h.

static void bt::Choker::setNumUploadSlots ( Uint32  n  )  [inline, static]

Set the number of upload slots.

Definition at line 113 of file choker.h.

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:
  • 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