Fix building against Boost 1.87.0 (#1455)

This commit is contained in:
Mike Lothian 2024-12-18 21:15:42 +00:00 committed by GitHub
parent 3738ccd2e6
commit 2b0cbf7f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -78,9 +78,7 @@ bool DSUControllerProvider::connect()
using namespace boost::asio;
ip::udp::resolver resolver(m_io_service);
const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port),
ip::udp::resolver::query::canonical_name);
m_receiver_endpoint = *resolver.resolve(query);
m_receiver_endpoint = *resolver.resolve(get_settings().ip, fmt::format("{}", get_settings().port)).cbegin();
if (m_socket.is_open())
m_socket.close();

View File

@ -102,7 +102,7 @@ private:
std::condition_variable m_writer_cond;
uint32 m_uid;
boost::asio::io_service m_io_service;
boost::asio::io_context m_io_service;
boost::asio::ip::udp::endpoint m_receiver_endpoint;
boost::asio::ip::udp::socket m_socket;