diff options
Diffstat (limited to 'src/HttpProxyRequestCommand.cc')
| -rw-r--r-- | src/HttpProxyRequestCommand.cc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/HttpProxyRequestCommand.cc b/src/HttpProxyRequestCommand.cc index 6f6f486e..34ac623c 100644 --- a/src/HttpProxyRequestCommand.cc +++ b/src/HttpProxyRequestCommand.cc @@ -33,26 +33,17 @@ */ /* copyright --> */ #include "HttpProxyRequestCommand.h" -#include "HttpConnection.h" #include "HttpProxyResponseCommand.h" HttpProxyRequestCommand::HttpProxyRequestCommand(int cuid, - const RequestHandle req, + const RequestHandle& req, DownloadEngine* e, const SocketHandle& s) - :AbstractCommand(cuid, req, e, s) { - disableReadCheckSocket(); - setWriteCheckSocket(socket); -} + :AbstractProxyRequestCommand(cuid, req, e, s) {} HttpProxyRequestCommand::~HttpProxyRequestCommand() {} -bool HttpProxyRequestCommand::executeInternal(Segment& segment) { - socket->setBlockingMode(); - HttpConnection httpConnection(cuid, socket, req, e->option); - httpConnection.sendProxyRequest(); - - HttpProxyResponseCommand* command = new HttpProxyResponseCommand(cuid, req, e, socket); - e->commands.push_back(command); - return true; +Command* HttpProxyRequestCommand::getNextCommand() +{ + return new HttpProxyResponseCommand(cuid, req, httpConnection, e, socket); } |
