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

Method do_write

example/advanced/server/advanced_server.cpp:432–447  ·  view source on GitHub ↗

Called to start/continue the write-loop. Should not be called when write_loop is already active.

Source from the content-addressed store, hash-verified

430 // Called to start/continue the write-loop. Should not be called when
431 // write_loop is already active.
432 void
433 do_write()
434 {
435 if(! response_queue_.empty())
436 {
437 bool keep_alive = response_queue_.front().keep_alive();
438
439 beast::async_write(
440 stream_,
441 std::move(response_queue_.front()),
442 beast::bind_front_handler(
443 &http_session::on_write,
444 shared_from_this(),
445 keep_alive));
446 }
447 }
448
449 void
450 on_write(

Callers

nothing calls this directly

Calls 5

moveClass · 0.85
bind_front_handlerFunction · 0.85
async_writeFunction · 0.50
emptyMethod · 0.45
keep_aliveMethod · 0.45

Tested by

no test coverage detected