aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-30 14:33:15 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commit2b864696b729783a0248c800e0a5b18bd881509c (patch)
tree856d233b8f2a41d38e4605ffaaf58a60d831631d /host/lib/utils
parent823251a1969e1a3a9434e27acbbb9e3b8ea4715e (diff)
downloaduhd-2b864696b729783a0248c800e0a5b18bd881509c.tar.gz
uhd-2b864696b729783a0248c800e0a5b18bd881509c.tar.bz2
uhd-2b864696b729783a0248c800e0a5b18bd881509c.zip
mpmd: Added preliminary support for passing RPC client to blocks
Diffstat (limited to 'host/lib/utils')
-rw-r--r--host/lib/utils/rpc.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/utils/rpc.hpp b/host/lib/utils/rpc.hpp
index 39acffa04..bae8f7fe1 100644
--- a/host/lib/utils/rpc.hpp
+++ b/host/lib/utils/rpc.hpp
@@ -33,6 +33,10 @@ class rpc_client
public:
using sptr = std::shared_ptr<rpc_client>;
+ static sptr make(std::string const& addr, uint16_t port) {
+ return std::make_shared<rpc_client>(addr, port);
+ }
+
/*!
* \param addr An IP address to connect to
* \param port Port to connect to