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

Method do_write

example/advanced/server-flex/advanced_server_flex.cpp:543–558  ·  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

541 // Called to start/continue the write-loop. Should not be called when
542 // write_loop is already active.
543 void
544 do_write()
545 {
546 if(! response_queue_.empty())
547 {
548 bool keep_alive = response_queue_.front().keep_alive();
549
550 beast::async_write(
551 derived().stream(),
552 std::move(response_queue_.front()),
553 beast::bind_front_handler(
554 &http_session::on_write,
555 derived().shared_from_this(),
556 keep_alive));
557 }
558 }
559
560 void
561 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