aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/udp_simple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/udp_simple.cpp')
-rw-r--r--host/lib/transport/udp_simple.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/transport/udp_simple.cpp b/host/lib/transport/udp_simple.cpp
index 094f570ff..1ee036d52 100644
--- a/host/lib/transport/udp_simple.cpp
+++ b/host/lib/transport/udp_simple.cpp
@@ -28,8 +28,6 @@ namespace asio = boost::asio;
**********************************************************************/
class udp_simple_impl : public udp_simple{
public:
- typedef boost::shared_ptr<asio::ip::udp::socket> socket_sptr;
-
udp_simple_impl(
const std::string &addr, const std::string &port, bool bcast, bool connect
):_connected(connect){
@@ -58,7 +56,7 @@ public:
}
size_t recv(const asio::mutable_buffer &buff, double timeout){
- if (not wait_for_recv(_socket->native(), timeout)) return 0;
+ if (not wait_for_recv_ready(_socket->native(), timeout)) return 0;
return _socket->receive(asio::buffer(buff));
}