aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/udp_zero_copy_asio.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-05 16:35:44 -0700
committerJosh Blum <josh@joshknows.com>2010-07-05 16:35:44 -0700
commitc2039a8c92561fa5532d87cb9d875a3ad7b875c1 (patch)
tree231b1c4cc8d4576f857177f5f4e190aed9fcaca8 /host/lib/transport/udp_zero_copy_asio.cpp
parent8047f25c601c43d6941cd0d094360a56917917c8 (diff)
downloaduhd-c2039a8c92561fa5532d87cb9d875a3ad7b875c1.tar.gz
uhd-c2039a8c92561fa5532d87cb9d875a3ad7b875c1.tar.bz2
uhd-c2039a8c92561fa5532d87cb9d875a3ad7b875c1.zip
uhd: code tweaks, extra error condition for vrt unpack
Diffstat (limited to 'host/lib/transport/udp_zero_copy_asio.cpp')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 7f9292d24..a91be25af 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -28,7 +28,7 @@ using namespace uhd::transport;
* Constants
**********************************************************************/
//enough buffering for half a second of samples at full rate on usrp2
-static const size_t MIN_SOCK_BUFF_SIZE = size_t(sizeof(boost::uint32_t) * 25e6 * 0.5);
+static const size_t MIN_SOCK_BUFF_SIZE(sizeof(boost::uint32_t) * 25e6 * 0.5);
static const size_t MAX_DGRAM_SIZE = 1500; //assume max size on send and recv
static const double RECV_TIMEOUT = 0.1; //100 ms