mirror of https://github.com/cemu-project/Cemu.git
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;
|
using namespace boost::asio;
|
||||||
|
|
||||||
ip::udp::resolver resolver(m_io_service);
|
ip::udp::resolver resolver(m_io_service);
|
||||||
const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port),
|
m_receiver_endpoint = *resolver.resolve(get_settings().ip, fmt::format("{}", get_settings().port)).cbegin();
|
||||||
ip::udp::resolver::query::canonical_name);
|
|
||||||
m_receiver_endpoint = *resolver.resolve(query);
|
|
||||||
|
|
||||||
if (m_socket.is_open())
|
if (m_socket.is_open())
|
||||||
m_socket.close();
|
m_socket.close();
|
||||||
|
|
|
@ -102,7 +102,7 @@ private:
|
||||||
std::condition_variable m_writer_cond;
|
std::condition_variable m_writer_cond;
|
||||||
|
|
||||||
uint32 m_uid;
|
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::endpoint m_receiver_endpoint;
|
||||||
boost::asio::ip::udp::socket m_socket;
|
boost::asio::ip::udp::socket m_socket;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue