diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
| commit | 7cd9b21937c42606354610c7ae85a0857b474cf5 (patch) | |
| tree | 21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/HttpServerBodyCommand.cc | |
| parent | 2dc4bf01ad3b9be3de22696128e8007cf81a5345 (diff) | |
2010-06-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made public member variables of DownloadEngine private. Added
accessor funcs.
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
| -rw-r--r-- | src/HttpServerBodyCommand.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc index 1fdbfe67..5067a843 100644 --- a/src/HttpServerBodyCommand.cc +++ b/src/HttpServerBodyCommand.cc @@ -52,6 +52,9 @@ #include "DownloadContext.h" #include "wallclock.h" #include "util.h" +#include "ServerStatMan.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" namespace aria2 { @@ -76,7 +79,7 @@ HttpServerBodyCommand::~HttpServerBodyCommand() bool HttpServerBodyCommand::execute() { - if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) { + if(_e->getRequestGroupMan()->downloadFinished() || _e->isHaltRequested()) { return true; } try { @@ -97,14 +100,14 @@ bool HttpServerBodyCommand::execute() _httpServer->feedResponse(responseData, "text/xml"); Command* command = new HttpServerResponseCommand(cuid, _httpServer, _e, _socket); - _e->commands.push_back(command); + _e->addCommand(command); _e->setNoWait(true); return true; } else { return true; } } else { - _e->commands.push_back(this); + _e->addCommand(this); return false; } } else { @@ -112,7 +115,7 @@ bool HttpServerBodyCommand::execute() logger->info("HTTP request body timeout."); return true; } else { - _e->commands.push_back(this); + _e->addCommand(this); return false; } } |
