From 9dd72fc481349f0b5ce985164441eecfa6485c19 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 17 Mar 2025 01:25:02 +0100 Subject: Add abstraction of io_{context,service} and use it as appropriate. --- src/lib/dcpomatic_socket.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/dcpomatic_socket.h') diff --git a/src/lib/dcpomatic_socket.h b/src/lib/dcpomatic_socket.h index ed2d8b728..37b7ba830 100644 --- a/src/lib/dcpomatic_socket.h +++ b/src/lib/dcpomatic_socket.h @@ -18,10 +18,13 @@ */ + #include "digester.h" +#include "io_context.h" #include #include + /** @class Socket * @brief A class to wrap a boost::asio::ip::tcp::socket with some things * that are useful for DCP-o-matic. @@ -93,7 +96,7 @@ private: void finish_write_digest (); void connect(boost::asio::ip::tcp::endpoint); - boost::asio::io_service _io_service; + dcpomatic::io_context _io_context; boost::asio::deadline_timer _deadline; boost::asio::ip::tcp::socket _socket; int _timeout; -- cgit v1.2.3