summaryrefslogtreecommitdiff
path: root/src/HttpDownloadCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-05-20 13:51:52 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-05-20 13:51:52 +0000
commiteaf2d53a91d4019683bc6caf25c5a143f88a84b4 (patch)
tree91137d789cdaa42221017a52346befb406c3addf /src/HttpDownloadCommand.cc
parentdd37b7be0aa5d818636530bc60f894893fd8f7a4 (diff)
2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Added the simultaneous download feature.
Diffstat (limited to 'src/HttpDownloadCommand.cc')
-rw-r--r--src/HttpDownloadCommand.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/HttpDownloadCommand.cc b/src/HttpDownloadCommand.cc
index 969addf9..c23142ee 100644
--- a/src/HttpDownloadCommand.cc
+++ b/src/HttpDownloadCommand.cc
@@ -39,18 +39,19 @@
HttpDownloadCommand::HttpDownloadCommand(int cuid,
const RequestHandle req,
+ RequestGroup* requestGroup,
DownloadEngine* e,
const SocketHandle& socket)
- :DownloadCommand(cuid, req, e, socket) {}
+ :DownloadCommand(cuid, req, requestGroup, e, socket) {}
HttpDownloadCommand::~HttpDownloadCommand() {}
bool HttpDownloadCommand::prepareForNextSegment() {
- if(e->segmentMan->finished()) {
+ if(_requestGroup->getSegmentMan()->finished()) {
return true;
} else {
if(req->isKeepAlive()) {
- Command* command = new HttpRequestCommand(cuid, req, e, socket);
+ Command* command = new HttpRequestCommand(cuid, req, _requestGroup, e, socket);
e->commands.push_back(command);
return true;
} else {