diff options
Diffstat (limited to 'host/lib/utils/rpc.hpp')
-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 |