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