diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-30 14:33:15 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:58 -0800 |
commit | 2b864696b729783a0248c800e0a5b18bd881509c (patch) | |
tree | 856d233b8f2a41d38e4605ffaaf58a60d831631d /host/lib/utils | |
parent | 823251a1969e1a3a9434e27acbbb9e3b8ea4715e (diff) | |
download | uhd-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.hpp | 4 |
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 |