diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-17 01:25:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-22 13:29:58 +0100 |
| commit | 9dd72fc481349f0b5ce985164441eecfa6485c19 (patch) | |
| tree | d8136ef6d6b660a5a411722a128d0e309333ff3d /src/lib/json_server.cc | |
| parent | 169c47ede14b6e86e054871a56ffa048357b4463 (diff) | |
Add abstraction of io_{context,service} and use it as appropriate.
Diffstat (limited to 'src/lib/json_server.cc')
| -rw-r--r-- | src/lib/json_server.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index bed563f5a..59aeb2c8e 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -69,11 +69,11 @@ void JSONServer::run (int port) try { - boost::asio::io_service io_service; - tcp::acceptor a (io_service, tcp::endpoint (tcp::v4 (), port)); + dcpomatic::io_context io_context; + tcp::acceptor a(io_context, tcp::endpoint(tcp::v4(), port)); while (true) { try { - auto s = make_shared<tcp::socket>(io_service); + auto s = make_shared<tcp::socket>(io_context); a.accept (*s); handle (s); } |
