summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-07 16:34:29 -0700
committerJosh Blum <josh@joshknows.com>2010-10-07 16:34:29 -0700
commit201af62ccb4d1065a44822f0f3ce4c81755510b5 (patch)
treeb58034f8f2f8fea072c4d8c5b0011376fc97d461 /host/lib/transport
parent952db7702f52e34fa05b8795abe46fb22add137d (diff)
downloaduhd-201af62ccb4d1065a44822f0f3ce4c81755510b5.tar.gz
uhd-201af62ccb4d1065a44822f0f3ce4c81755510b5.tar.bz2
uhd-201af62ccb4d1065a44822f0f3ce4c81755510b5.zip
udp: fix msvc errors for udp transport
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 798cc657d..40fe3fa0f 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -189,7 +189,7 @@ public:
//setup timeval for timeout
timeval tv;
tv.tv_sec = 0;
- tv.tv_usec = timeout*1e6;
+ tv.tv_usec = long(timeout*1e6);
//setup rset for timeout
fd_set rset;
@@ -274,7 +274,7 @@ private:
asio::ip::udp::socket *_socket;
asio::io_service _io_service;
asio::io_service::work *_work;
- asio::ip::udp::socket::native_type _sock_fd;
+ int _sock_fd;
//memory management -> buffers and fifos
boost::thread_group _thread_group;