| 47 | } |
| 48 | |
| 49 | void server::run() |
| 50 | { |
| 51 | // The io_context::run() call will block until all asynchronous operations |
| 52 | // have finished. While the server is running, there is always at least one |
| 53 | // asynchronous operation outstanding: the asynchronous accept call waiting |
| 54 | // for new incoming connections. |
| 55 | io_context_.run(); |
| 56 | } |
| 57 | |
| 58 | void server::do_accept() |
| 59 | { |
no outgoing calls