aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/tcp_zero_copy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/tcp_zero_copy.cpp')
-rw-r--r--host/lib/transport/tcp_zero_copy.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/transport/tcp_zero_copy.cpp b/host/lib/transport/tcp_zero_copy.cpp
index 5cb713427..01bca900f 100644
--- a/host/lib/transport/tcp_zero_copy.cpp
+++ b/host/lib/transport/tcp_zero_copy.cpp
@@ -5,11 +5,11 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#include "udp_common.hpp"
#include <uhd/transport/buffer_pool.hpp>
#include <uhd/transport/tcp_zero_copy.hpp>
#include <uhd/utils/log.hpp>
#include <uhdlib/utils/atomic.hpp>
+#include <uhdlib/transport/udp_common.hpp>
#include <boost/format.hpp>
#include <boost/make_shared.hpp>
#include <chrono>
@@ -52,8 +52,9 @@ public:
return make(this, _mem, size_t(_len));
}
#endif
+ const int32_t timeout_ms = static_cast<int32_t>(timeout * 1000);
- if (wait_for_recv_ready(_sock_fd, timeout)) {
+ if (wait_for_recv_ready(_sock_fd, timeout_ms)) {
_len = ::recv(_sock_fd, (char*)_mem, _frame_size, 0);
index++; // advances the caller's buffer
return make(this, _mem, size_t(_len));