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

Method updateWriteCheck

src/HttpServerCommand.cc:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155#endif // ENABLE_WEBSOCKET
156
157void HttpServerCommand::updateWriteCheck()
158{
159 if (httpServer_->wantWrite()) {
160 if (!writeCheck_) {
161 writeCheck_ = true;
162 e_->addSocketForWriteCheck(socket_, this);
163 }
164 }
165 else if (writeCheck_) {
166 writeCheck_ = false;
167 e_->deleteSocketForWriteCheck(socket_, this);
168 }
169}
170
171bool HttpServerCommand::execute()
172{

Callers 1

addNotificationMethod · 0.45

Calls 3

wantWriteMethod · 0.45

Tested by

no test coverage detected