| 48 | namespace aria2 { |
| 49 | |
| 50 | AbstractHttpServerResponseCommand::AbstractHttpServerResponseCommand( |
| 51 | cuid_t cuid, const std::shared_ptr<HttpServer>& httpServer, |
| 52 | DownloadEngine* e, const std::shared_ptr<SocketCore>& socket) |
| 53 | : Command(cuid), |
| 54 | e_(e), |
| 55 | socket_(socket), |
| 56 | httpServer_(httpServer), |
| 57 | readCheck_(false), |
| 58 | writeCheck_(true) |
| 59 | { |
| 60 | setStatus(Command::STATUS_ONESHOT_REALTIME); |
| 61 | e_->addSocketForWriteCheck(socket_, this); |
| 62 | } |
| 63 | |
| 64 | AbstractHttpServerResponseCommand::~AbstractHttpServerResponseCommand() |
| 65 | { |
nothing calls this directly
no test coverage detected