/* */ #include "HttpProxyRequestCommand.h" #include "HttpConnection.h" #include "HttpProxyResponseCommand.h" HttpProxyRequestCommand::HttpProxyRequestCommand(int cuid, const RequestHandle req, DownloadEngine* e, const SocketHandle& s) :AbstractCommand(cuid, req, e, s) { disableReadCheckSocket(); setWriteCheckSocket(socket); } 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; }