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

Method updateWriteCheck

src/WebSocketInteractionCommand.cc:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void WebSocketInteractionCommand::updateWriteCheck()
74{
75 if (socket_->wantWrite() || wsSession_->wantWrite()) {
76 if (!writeCheck_) {
77 writeCheck_ = true;
78 e_->addSocketForWriteCheck(socket_, this);
79 }
80 }
81 else if (writeCheck_) {
82 writeCheck_ = false;
83 e_->deleteSocketForWriteCheck(socket_, this);
84 }
85}
86
87bool WebSocketInteractionCommand::execute()
88{

Callers

nothing calls this directly

Calls 3

wantWriteMethod · 0.45

Tested by

no test coverage detected