From 048a2cf59737f761876e81a77e8d064c45c752d7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 11 Oct 2007 16:58:24 +0000 Subject: 2007-10-12 Tatsuhiro Tsujikawa Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only. --- src/ActivePeerConnectionCommand.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/ActivePeerConnectionCommand.h') diff --git a/src/ActivePeerConnectionCommand.h b/src/ActivePeerConnectionCommand.h index 2bc919f9..4877101e 100644 --- a/src/ActivePeerConnectionCommand.h +++ b/src/ActivePeerConnectionCommand.h @@ -35,30 +35,30 @@ #ifndef _D_ACTIVE_PEER_CONNECTION_COMMAND_H_ #define _D_ACTIVE_PEER_CONNECTION_COMMAND_H_ +#include "Command.h" #include "BtContextAwareCommand.h" -#include "TorrentDownloadEngine.h" +#include "DownloadEngine.h" #include "TimeA2.h" +#include "RequestGroupAware.h" -class ActivePeerConnectionCommand : public BtContextAwareCommand { +class ActivePeerConnectionCommand : public Command, + public BtContextAwareCommand, + public RequestGroupAware +{ private: int32_t interval; // UNIT: sec - TorrentDownloadEngine* e; + DownloadEngine* e; Time checkPoint; int32_t _lowestSpeedLimit; // UNIT: byte/sec int32_t _numNewConnection; // the number of the connection to establish. public: ActivePeerConnectionCommand(int cuid, - TorrentDownloadEngine* e, + RequestGroup* requestGroup, + DownloadEngine* e, const BtContextHandle& btContext, - int32_t interval) - :BtContextAwareCommand(cuid, btContext), - interval(interval), - e(e), - _lowestSpeedLimit(20*1024), - _numNewConnection(5) - {} + int32_t interval); - virtual ~ActivePeerConnectionCommand() {} + virtual ~ActivePeerConnectionCommand(); virtual bool execute(); -- cgit