From 823251a1969e1a3a9434e27acbbb9e3b8ea4715e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 25 May 2017 18:09:08 -0700 Subject: eiscat: Fixed missing antenna selection reg write for direct rx --- host/lib/utils/rpc.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'host/lib/utils') diff --git a/host/lib/utils/rpc.hpp b/host/lib/utils/rpc.hpp index 946ce90ed..39acffa04 100644 --- a/host/lib/utils/rpc.hpp +++ b/host/lib/utils/rpc.hpp @@ -20,12 +20,27 @@ #include -namespace uhd -{ +namespace uhd { + +/*! Abstraction for RPC client + * + * Purpose of this class is to wrap the underlying RPC implementation. + * This class holds a connection to an RPC server (the connection is severed on + * destruction). + */ class rpc_client { public: + using sptr = std::shared_ptr; + + /*! + * \param addr An IP address to connect to + * \param port Port to connect to + */ rpc_client(std::string const& addr, uint16_t port) : _client(addr, port) {} + + /*! Perform an RPC call + */ template return_type call(std::string const& func_name, Args&&... args) { -- cgit v1.2.3