summaryrefslogtreecommitdiff
path: root/c++
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-11-02 21:39:36 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-11-02 21:39:36 +0100
commit247d15cdd816af187eaf22c39fb3738efd56d132 (patch)
treeb1dec704e1ccd30a38c33d94b3cc4fe9c51a774b /c++
parentbd1482cde66cf2aaa314ce4d23db5ceb45d41d4b (diff)
io_codec: concept work on rpc
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);
+};
}