summaryrefslogtreecommitdiff
path: root/src/lib/dcpomatic_socket.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-17 14:38:17 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-22 13:29:58 +0100
commit7bd3e8150a0e321ec61cf4953baeb6f45d4611a9 (patch)
tree4553f01167d7a39c8f3ae8cdd1914f9f6e6a9af4 /src/lib/dcpomatic_socket.h
parent9dd72fc481349f0b5ce985164441eecfa6485c19 (diff)
Remove deprecated/removed use of resolver::query.
Diffstat (limited to 'src/lib/dcpomatic_socket.h')
-rw-r--r--src/lib/dcpomatic_socket.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/dcpomatic_socket.h b/src/lib/dcpomatic_socket.h
index 37b7ba830..1bc3aead9 100644
--- a/src/lib/dcpomatic_socket.h
+++ b/src/lib/dcpomatic_socket.h
@@ -46,6 +46,7 @@ public:
}
void set_send_buffer_size (int size);
+
void connect(std::string host_name, int port);
void connect(boost::asio::ip::address address, int port);
@@ -94,7 +95,10 @@ private:
bool check_read_digest ();
void start_write_digest ();
void finish_write_digest ();
- void connect(boost::asio::ip::tcp::endpoint);
+ void connect(boost::asio::ip::tcp::endpoint endpoint);
+#ifdef DCPOMATIC_HAVE_BOOST_ASIO_IP_BASIC_RESOLVER_RESULTS
+ void connect(boost::asio::ip::basic_resolver_results<boost::asio::ip::tcp> endpoints);
+#endif
dcpomatic::io_context _io_context;
boost::asio::deadline_timer _deadline;