/* */ #ifndef FTP_TUNNEL_REQUEST_CONNECT_CHAIN_H #define FTP_TUNNEL_REQUEST_CONNECT_CHAIN_H #include "ControlChain.h" #include "ConnectCommand.h" #include "DownloadEngine.h" #include "FtpTunnelRequestCommand.h" namespace aria2 { struct FtpTunnelRequestConnectChain : public ControlChain { FtpTunnelRequestConnectChain() {} virtual ~FtpTunnelRequestConnectChain() {} virtual int run(ConnectCommand* t, DownloadEngine* e) CXX11_OVERRIDE { auto c = make_unique( t->getCuid(), t->getRequest(), t->getFileEntry(), t->getRequestGroup(), t->getDownloadEngine(), t->getProxyRequest(), t->getSocket()); c->setStatus(Command::STATUS_ONESHOT_REALTIME); e->setNoWait(true); e->addCommand(std::move(c)); return 0; } }; } // namespace aria2 #endif // FTP_TUNNEL_REQUEST_CONNECT_CHAIN_H