mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-23 16:21:53 +01:00
Fix building against Boost 1.87.0 (#1455)
This commit is contained in:
parent
3738ccd2e6
commit
2b0cbf7f6b
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user