Start the asynchronous operation
| 259 | |
| 260 | // Start the asynchronous operation |
| 261 | void |
| 262 | run() |
| 263 | { |
| 264 | // We need to be executing within a strand to perform async operations |
| 265 | // on the I/O objects in this session.Although not strictly necessary |
| 266 | // for single-threaded contexts, this example code is written to be |
| 267 | // thread-safe by default. |
| 268 | net::dispatch(stream_.get_executor(), |
| 269 | beast::bind_front_handler(&session::loop, |
| 270 | shared_from_this(), |
| 271 | beast::error_code{}, |
| 272 | 0)); |
| 273 | } |
| 274 | |
| 275 | #include <boost/asio/yield.hpp> |
| 276 |
no test coverage detected