24 #include <util/constants.h>
25 #include <peer/peer.h>
26 #include <ktorrent_export.h>
31 const Uint32 UNDEFINED_ID = 0xFFFFFFFF;
43 Uint32 opt_unchoked_peer_id;
82 static Uint32 num_upload_slots;
virtual void doChokingSeedingState(PeerManager &pman, ChunkManager &cman, const TorrentStats &stats)=0
virtual void doChokingLeechingState(PeerManager &pman, ChunkManager &cman, const TorrentStats &stats)=0
void update(bool have_all, const TorrentStats &stats)
static void setNumUploadSlots(Uint32 n)
Set the number of upload slots.
Uint32 getOptimisticlyUnchokedPeerID() const
Get the PeerID of the optimisticly unchoked peer.
static Uint32 getNumUploadSlots()
Get the number of upload slots.
Uint32 getOptimisticlyUnchokedPeerID() const
Get the optimisticly unchoked peer ID.