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