From 1e65500d791461be9aa7a2d2646d463f536f49e3 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Mon, 25 Mar 2019 13:11:17 -0500 Subject: uhd: add udp boost asio implementation of transport interface --- host/lib/transport/tcp_zero_copy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib/transport/tcp_zero_copy.cpp') 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 #include #include #include +#include #include #include #include @@ -52,8 +52,9 @@ public: return make(this, _mem, size_t(_len)); } #endif + const int32_t timeout_ms = static_cast(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)); -- cgit v1.2.3