From d9d9d0a8a2e61b1b82e9799585cb7376f581f276 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 19 Dec 2017 02:37:19 -0800 Subject: Fix build with Boost 1.66 Thanks to FX Coudert for suggesting this fix. --- host/examples/network_relay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/examples/network_relay.cpp') diff --git a/host/examples/network_relay.cpp b/host/examples/network_relay.cpp index 7e354934a..84040b5e6 100644 --- a/host/examples/network_relay.cpp +++ b/host/examples/network_relay.cpp @@ -127,7 +127,7 @@ private: wait_for_thread.notify_one(); // notify constructor that this thread has started std::vector buff(insane_mtu); while (not boost::this_thread::interruption_requested()){ - if (wait_for_recv_ready(_server_socket->native())){ + if (wait_for_recv_ready(_server_socket->native_handle())){ boost::mutex::scoped_lock lock(_endpoint_mutex); const size_t len = _server_socket->receive_from(asio::buffer(&buff.front(), buff.size()), _endpoint); lock.unlock(); @@ -153,7 +153,7 @@ private: wait_for_thread.notify_one(); // notify constructor that this thread has started std::vector buff(insane_mtu); while (not boost::this_thread::interruption_requested()){ - if (wait_for_recv_ready(_client_socket->native())){ + if (wait_for_recv_ready(_client_socket->native_handle())){ const size_t len = _client_socket->receive(asio::buffer(&buff.front(), buff.size())); boost::mutex::scoped_lock lock(_endpoint_mutex); _server_socket->send_to(asio::buffer(&buff.front(), len), _endpoint); -- cgit v1.2.3