diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-19 10:57:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-19 10:57:39 -0700 |
commit | ef9a395414acc203cc02e551e1790277cd0ef1f9 (patch) | |
tree | 1a6cc02ca18cb30bf1f4f253f3550743d7d43ea9 /host/include | |
parent | 8a7a824848f0a6276c0dc209bbd3ceeeb1eb7bd5 (diff) | |
download | uhd-ef9a395414acc203cc02e551e1790277cd0ef1f9.tar.gz uhd-ef9a395414acc203cc02e551e1790277cd0ef1f9.tar.bz2 uhd-ef9a395414acc203cc02e551e1790277cd0ef1f9.zip |
usrp2: add a timeout to udp control and make it large for usrp2 control transactions
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/udp_simple.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |