From 2b864696b729783a0248c800e0a5b18bd881509c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 30 May 2017 14:33:15 -0700 Subject: mpmd: Added preliminary support for passing RPC client to blocks --- host/lib/utils/rpc.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/utils') 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; + static sptr make(std::string const& addr, uint16_t port) { + return std::make_shared(addr, port); + } + /*! * \param addr An IP address to connect to * \param port Port to connect to -- cgit v1.2.3