libktorrent  2.2.0
Public Member Functions | List of all members
bt::AdvancedChokeAlgorithm Class Reference

#include <advancedchokealgorithm.h>

Inheritance diagram for bt::AdvancedChokeAlgorithm:
Inheritance graph
[legend]

Public Member Functions

void doChokingLeechingState (PeerManager &pman, ChunkManager &cman, const TorrentStats &stats) override
 
void doChokingSeedingState (PeerManager &pman, ChunkManager &cman, const TorrentStats &stats) override
 
- Public Member Functions inherited from bt::ChokeAlgorithm
Uint32 getOptimisticlyUnchokedPeerID () const
 Get the optimisticly unchoked peer ID.
 

Additional Inherited Members

- Protected Attributes inherited from bt::ChokeAlgorithm
Uint32 opt_unchoked_peer_id
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com

Definition at line 53 of file advancedchokealgorithm.h.

Member Function Documentation

◆ doChokingLeechingState()

void bt::AdvancedChokeAlgorithm::doChokingLeechingState ( PeerManager pman,
ChunkManager cman,
const TorrentStats stats 
)
overridevirtual

Do the actual choking when we are still downloading.

Parameters
pmanThe PeerManager
cmanThe ChunkManager
statsThe torrent stats

Implements bt::ChokeAlgorithm.

◆ doChokingSeedingState()

void bt::AdvancedChokeAlgorithm::doChokingSeedingState ( PeerManager pman,
ChunkManager cman,
const TorrentStats stats 
)
overridevirtual

Do the actual choking when we are seeding

Parameters
pmanThe PeerManager
cmanThe ChunkManager
statsThe torrent stats

Implements bt::ChokeAlgorithm.


The documentation for this class was generated from the following file: