MCPcopy Create free account
hub / github.com/aria2/aria2 / AbstractHttpServerResponseCommand

Method AbstractHttpServerResponseCommand

src/AbstractHttpServerResponseCommand.cc:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48namespace aria2 {
49
50AbstractHttpServerResponseCommand::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
64AbstractHttpServerResponseCommand::~AbstractHttpServerResponseCommand()
65{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected