/* */ #ifndef _D_PEER_CHOKE_COMMAND_H_ #define _D_PEER_CHOKE_COMMAND_H_ #include "Command.h" #include "TorrentDownloadEngine.h" #include "TimeA2.h" class PeerChokeCommand : public Command { private: int interval; TorrentDownloadEngine* e; int rotate; Time checkPoint; void orderByUploadRate(Peers& peers) const; void orderByDownloadRate(Peers& peers) const; void optUnchokingPeer(Peers& peers) const; public: PeerChokeCommand(int cuid, TorrentDownloadEngine* e, int interval); virtual ~PeerChokeCommand(); bool execute(); }; #endif // _D_PEER_CHOKE_COMMAND_H_