| 54 | } |
| 55 | |
| 56 | int main() |
| 57 | { |
| 58 | try |
| 59 | { |
| 60 | boost::asio::io_context io_context(1); |
| 61 | |
| 62 | boost::asio::signal_set signals(io_context, SIGINT, SIGTERM); |
| 63 | signals.async_wait([&](auto, auto){ io_context.stop(); }); |
| 64 | |
| 65 | co_spawn(io_context, listener(), detached); |
| 66 | |
| 67 | io_context.run(); |
| 68 | } |
| 69 | catch (std::exception& e) |
| 70 | { |
| 71 | std::printf("Exception: %s\n", e.what()); |
| 72 | } |
| 73 | } |
nothing calls this directly
no test coverage detected