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

Method run

example/advanced/server-flex/advanced_server_flex.cpp:667–681  ·  view source on GitHub ↗

Start the session

Source from the content-addressed store, hash-verified

665
666 // Start the session
667 void
668 run()
669 {
670 // Set the timeout.
671 beast::get_lowest_layer(stream_).expires_after(std::chrono::seconds(30));
672
673 // Perform the SSL handshake
674 // Note, this is the buffered version of the handshake.
675 stream_.async_handshake(
676 ssl::stream_base::server,
677 buffer_.data(),
678 beast::bind_front_handler(
679 &ssl_http_session::on_handshake,
680 shared_from_this()));
681 }
682
683 // Called by the base class
684 ssl::stream<beast::tcp_stream>&

Callers

nothing calls this directly

Calls 3

bind_front_handlerFunction · 0.85
async_handshakeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected