summaryrefslogtreecommitdiff
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rw-r--r--c++/io_codec/rpc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/c++/io_codec/rpc.h b/c++/io_codec/rpc.h
index 06a5f76..67c4cec 100644
--- a/c++/io_codec/rpc.h
+++ b/c++/io_codec/rpc.h
@@ -14,4 +14,15 @@ public:
conveyor<rpc_client<rmt::Network>> create_client();
};
+
+template<>
+class rpc_client<rmt::Network> {
+private:
+ own<io_stream> stream_;
+public:
+ rpc_client(own<io_stream> stream);
+
+ template<typename T>
+ remote_result<typename response<T>::type> call(typename request<T>::type req);
+};
}