aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/nirio
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2016-03-21 09:13:45 -0700
committerMartin Braun <martin.braun@ettus.com>2016-03-21 14:57:59 -0700
commit603fb7aacdda208c4d38521f9eed81f61f6c7b9b (patch)
tree88121b39dc2dcfb954db8b66215e03d12ef6f9a0 /host/lib/transport/nirio
parent30c12d86a421deeeae69de8323a034ecb8c4e2fc (diff)
downloaduhd-603fb7aacdda208c4d38521f9eed81f61f6c7b9b.tar.gz
uhd-603fb7aacdda208c4d38521f9eed81f61f6c7b9b.tar.bz2
uhd-603fb7aacdda208c4d38521f9eed81f61f6c7b9b.zip
Updated code to work for new minimum dependencies
* Removed code referencing now-unsupported versions of Boost * Added <stdint.h> includes where needed
Diffstat (limited to 'host/lib/transport/nirio')
-rw-r--r--host/lib/transport/nirio/rpc/rpc_client.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/host/lib/transport/nirio/rpc/rpc_client.cpp b/host/lib/transport/nirio/rpc/rpc_client.cpp
index bbaf9f235..3d62b57ae 100644
--- a/host/lib/transport/nirio/rpc/rpc_client.cpp
+++ b/host/lib/transport/nirio/rpc/rpc_client.cpp
@@ -1,5 +1,5 @@
///
-// Copyright 2013 Ettus Research LLC
+// Copyright 2013,2016 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -55,22 +55,7 @@ rpc_client::rpc_client (
tcp::resolver::query::flags query_flags(tcp::resolver::query::passive);
tcp::resolver::query query(tcp::v4(), server, port, query_flags);
tcp::resolver::iterator iterator = resolver.resolve(query);
-
- #if BOOST_VERSION < 104700
- // default constructor creates end iterator
- tcp::resolver::iterator end;
-
- boost::system::error_code error = boost::asio::error::host_not_found;
- while (error && iterator != end)
- {
- _socket.close();
- _socket.connect(*iterator++, error);
- }
- if (error)
- throw boost::system::system_error(error);
- #else
- boost::asio::connect(_socket, iterator);
- #endif
+ boost::asio::connect(_socket, iterator);
UHD_LOG << "rpc_client connected to server." << std::endl;
@@ -109,11 +94,6 @@ rpc_client::rpc_client (
} catch (boost::exception&) {
UHD_LOG << "rpc_client connection request cancelled/aborted." << std::endl;
_exec_err.assign(boost::asio::error::connection_aborted, boost::asio::error::get_system_category());
-#if BOOST_VERSION < 104700
- } catch (std::exception& e) {
- UHD_LOG << "rpc_client connection error: " << e.what() << std::endl;
- _exec_err.assign(boost::asio::error::connection_aborted, boost::asio::error::get_system_category());
-#endif
}
}