MCPcopy Create free account
hub / github.com/boostorg/beast / on_write

Method on_write

test/bench/wsload/wsload.cpp:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void
195 on_write(beast::error_code ec, std::size_t)
196 {
197 if(ec)
198 return fail(ec, "write");
199
200 if(messages_--)
201 return do_read();
202
203 ws_.async_close({},
204 beast::bind_front_handler(
205 &connection::on_close,
206 this->shared_from_this()));
207 }
208
209 void
210 do_read()

Callers

nothing calls this directly

Calls 3

bind_front_handlerFunction · 0.85
failFunction · 0.70
async_closeMethod · 0.45

Tested by

no test coverage detected