/* */ #include "FtpTunnelRequestCommand.h" #include "FtpTunnelResponseCommand.h" #include "HttpConnection.h" FtpTunnelRequestCommand::FtpTunnelRequestCommand(int cuid, Request* req, DownloadEngine* e, Socket* s):AbstractCommand(cuid, req, e, s) { setReadCheckSocket(NULL); setWriteCheckSocket(NULL); } FtpTunnelRequestCommand::~FtpTunnelRequestCommand() {} bool FtpTunnelRequestCommand::executeInternal(Segment segment) { socket->setBlockingMode(); HttpConnection httpConnection(cuid, socket, req, e->option, e->logger); httpConnection.sendProxyRequest(); FtpTunnelResponseCommand* command = new FtpTunnelResponseCommand(cuid, req, e, socket); e->commands.push(command); return true; }