MCPcopy Create free account
hub / github.com/bcndev/bytecoin / on_client_disconnected

Method on_client_disconnected

src/http/Server.cpp:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194void Server::write(Client *who, ResponseBody &&response) { who->write(std::move(response)); }
195
196void Server::on_client_disconnected(Client *who) {
197 auto cit = clients.find(who);
198 if (cit == clients.end())
199 return;
200 auto cli = std::move(cit->second);
201 cit = clients.erase(cit);
202 d_handler(who);
203}
204
205void Server::on_client_handle_request(Client *who, RequestBody &&request) {
206 ResponseBody response(request.r);

Callers 1

writeMethod · 0.45

Calls 2

endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected