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

Method on_write

example/advanced/server/advanced_server.cpp:304–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302 }
303
304 void
305 on_write(
306 beast::error_code ec,
307 std::size_t bytes_transferred)
308 {
309 boost::ignore_unused(bytes_transferred);
310
311 if(ec)
312 return fail(ec, "write");
313
314 // Clear the buffer
315 buffer_.consume(buffer_.size());
316
317 // Do another read
318 do_read();
319 }
320};
321
322//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

failFunction · 0.70
consumeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected