diff options
author | ilovezfs <ilovezfs@icloud.com> | 2017-12-19 02:37:19 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-19 09:17:19 -0800 |
commit | 707db05b5a4a2453c63b24f92d357d63d7962b11 (patch) | |
tree | 37a7369e6bfb054edc045fc1cc3210ad1992b23b /host/examples/network_relay.cpp | |
parent | 85a707d7fff008e15e8f83c66dbbe253d6093479 (diff) | |
download | uhd-707db05b5a4a2453c63b24f92d357d63d7962b11.tar.gz uhd-707db05b5a4a2453c63b24f92d357d63d7962b11.tar.bz2 uhd-707db05b5a4a2453c63b24f92d357d63d7962b11.zip |
Fix build with Boost 1.66
Thanks to FX Coudert for suggesting this fix.
Diffstat (limited to 'host/examples/network_relay.cpp')
-rw-r--r-- | host/examples/network_relay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/network_relay.cpp b/host/examples/network_relay.cpp index c21b2696e..1c16e1781 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<char> 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<char> 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); |