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

Method updateWriteCheck

src/HttpServerBodyCommand.cc:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void HttpServerBodyCommand::updateWriteCheck()
162{
163 if (httpServer_->wantWrite()) {
164 if (!writeCheck_) {
165 writeCheck_ = true;
166 e_->addSocketForWriteCheck(socket_, this);
167 }
168 }
169 else if (writeCheck_) {
170 writeCheck_ = false;
171 e_->deleteSocketForWriteCheck(socket_, this);
172 }
173}
174
175bool HttpServerBodyCommand::execute()
176{

Callers

nothing calls this directly

Calls 3

wantWriteMethod · 0.45

Tested by

no test coverage detected