diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-21 14:12:51 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-21 14:12:51 +0000 |
| commit | df6c7c03856c9c17e1a48c080aa34d815e812f8e (patch) | |
| tree | 18d81e4a62b0efe64e31640a8284e3fa58b25019 /src/HttpRequestCommand.cc | |
| parent | a59301bef0af97f654ad5d82070d0045e7da508c (diff) | |
added bittorrent support(experimental)
Diffstat (limited to 'src/HttpRequestCommand.cc')
| -rw-r--r-- | src/HttpRequestCommand.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 42090bef..84439b6b 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -21,9 +21,6 @@ /* copyright --> */ #include "HttpRequestCommand.h" #include "HttpResponseCommand.h" -#include "HttpInitiateConnectionCommand.h" -#include "Socket.h" -#include "Util.h" #include "HttpConnection.h" HttpRequestCommand::HttpRequestCommand(int cuid, Request* req, DownloadEngine* e, Socket* s):AbstractCommand(cuid, req, e, s) { @@ -43,7 +40,11 @@ bool HttpRequestCommand::executeInternal(Segment seg) { req->seg = seg; http.sendRequest(seg); - HttpResponseCommand* command = new HttpResponseCommand(cuid, req, e, socket); + Command* command = getNextCommand(); e->commands.push(command); return true; } + +Command* HttpRequestCommand::getNextCommand() const { + return new HttpResponseCommand(cuid, req, e, socket); +} |
