aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/rpc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/utils/rpc.hpp')
-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