diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-02 21:39:36 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-02 21:39:36 +0100 |
commit | 247d15cdd816af187eaf22c39fb3738efd56d132 (patch) | |
tree | b1dec704e1ccd30a38c33d94b3cc4fe9c51a774b /c++/io_codec | |
parent | bd1482cde66cf2aaa314ce4d23db5ceb45d41d4b (diff) |
io_codec: concept work on rpc
Diffstat (limited to 'c++/io_codec')
-rw-r--r-- | c++/io_codec/rpc.h | 11 |
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); +}; } |