Launch the detector
| 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) |
nothing calls this directly
no test coverage detected