Start the asynchronous operation
| 229 | |
| 230 | // Start the asynchronous operation |
| 231 | void |
| 232 | run() |
| 233 | { |
| 234 | // We need to be executing within a strand to perform async operations |
| 235 | // on the I/O objects in this session. Although not strictly necessary |
| 236 | // for single-threaded contexts, this example code is written to be |
| 237 | // thread-safe by default. |
| 238 | net::dispatch(stream_.get_executor(), |
| 239 | beast::bind_front_handler( |
| 240 | &session::do_read, |
| 241 | shared_from_this())); |
| 242 | } |
| 243 | |
| 244 | void |
| 245 | do_read() |
no test coverage detected