summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-11 18:21:16 -0700
committerJosh Blum <josh@joshknows.com>2010-10-11 18:21:16 -0700
commitd54fd2abffd8849bf41a5f8084a828e6472ba342 (patch)
tree29a717e09bc0bbec06b6ac4a8a452c9916338184 /host/include
parent1314feb429b8c2713d9fd0e9da077825d0a9c3bc (diff)
downloaduhd-d54fd2abffd8849bf41a5f8084a828e6472ba342.tar.gz
uhd-d54fd2abffd8849bf41a5f8084a828e6472ba342.tar.bz2
uhd-d54fd2abffd8849bf41a5f8084a828e6472ba342.zip
usrp2: use select rather than manually polling the simple udp socket
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/udp_simple.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/include/uhd/transport/udp_simple.hpp b/host/include/uhd/transport/udp_simple.hpp
index c84393ecf..83f895ba9 100644
--- a/host/include/uhd/transport/udp_simple.hpp
+++ b/host/include/uhd/transport/udp_simple.hpp
@@ -73,10 +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
+ * \param timeout the timeout in seconds
* \return the number of bytes received or zero on timeout
*/
- virtual size_t recv(const boost::asio::mutable_buffer &buff, size_t timeout_ms) = 0;
+ virtual size_t recv(const boost::asio::mutable_buffer &buff, double timeout = 0.1) = 0;
};
}} //namespace