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

Method run

example/http/server/flex/http_server_flex.cpp:500–513  ·  view source on GitHub ↗

Launch the detector

Source from the content-addressed store, hash-verified

498
499 // Launch the detector
500 void
501 run()
502 {
503 // Set the timeout.
504 beast::get_lowest_layer(stream_).expires_after(std::chrono::seconds(30));
505
506 // Detect a TLS handshake
507 async_detect_ssl(
508 stream_,
509 buffer_,
510 beast::bind_front_handler(
511 &detect_session::on_detect,
512 shared_from_this()));
513 }
514
515 void
516 on_detect(beast::error_code ec, bool result)

Callers

nothing calls this directly

Calls 2

async_detect_sslFunction · 0.85
bind_front_handlerFunction · 0.85

Tested by

no test coverage detected