From ef9a395414acc203cc02e551e1790277cd0ef1f9 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 19 Jul 2010 10:57:39 -0700 Subject: usrp2: add a timeout to udp control and make it large for usrp2 control transactions --- host/include/uhd/transport/udp_simple.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/transport/udp_simple.hpp b/host/include/uhd/transport/udp_simple.hpp index 98dca02f0..c84393ecf 100644 --- a/host/include/uhd/transport/udp_simple.hpp +++ b/host/include/uhd/transport/udp_simple.hpp @@ -73,9 +73,10 @@ public: * Receive into the provided buffer. * Blocks until data is received or a timeout occurs. * \param buff a mutable buffer to receive into + * \param timeout_ms the timeout in milliseconds * \return the number of bytes received or zero on timeout */ - virtual size_t recv(const boost::asio::mutable_buffer &buff) = 0; + virtual size_t recv(const boost::asio::mutable_buffer &buff, size_t timeout_ms) = 0; }; }} //namespace -- cgit v1.2.3