Launch the detector
| 757 | |
| 758 | // Launch the detector |
| 759 | void |
| 760 | run() |
| 761 | { |
| 762 | // We need to be executing within a strand to perform async operations |
| 763 | // on the I/O objects in this session. Although not strictly necessary |
| 764 | // for single-threaded contexts, this example code is written to be |
| 765 | // thread-safe by default. |
| 766 | net::dispatch( |
| 767 | stream_.get_executor(), |
| 768 | beast::bind_front_handler( |
| 769 | &detect_session::on_run, |
| 770 | this->shared_from_this())); |
| 771 | } |
| 772 | |
| 773 | void |
| 774 | on_run() |
nothing calls this directly
no test coverage detected