/* */ #ifndef SFTP_NEGOTIATION_CONNECT_CHAIN_H #define SFTP_NEGOTIATION_CONNECT_CHAIN_H #include "ControlChain.h" #include "ConnectCommand.h" #include "DownloadEngine.h" #include "SftpNegotiationCommand.h" namespace aria2 { struct SftpNegotiationConnectChain : public ControlChain { SftpNegotiationConnectChain() {} virtual ~SftpNegotiationConnectChain() {} 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 // SFTP_NEGOTIATION_CONNECT_CHAIN_H