From 40369c781e43282992e720efaaa99fa5e60c0d20 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 4 Jul 2024 16:32:14 +0200 Subject: Preparation work for loopback --- modules/codec/c++/rpc.hpp | 60 +++-------------------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) (limited to 'modules/codec/c++/rpc.hpp') diff --git a/modules/codec/c++/rpc.hpp b/modules/codec/c++/rpc.hpp index d172ec4..6b63580 100644 --- a/modules/codec/c++/rpc.hpp +++ b/modules/codec/c++/rpc.hpp @@ -70,52 +70,15 @@ public: } }; + /** * Representing data on the remote */ template -class remote_data { -private: - id id_; -public: - remote_data(const id& id): - id_{id} - {} - - /** - * Wait until data arrives - */ - error_or> wait(wait_scope& wait); +class remote_data; - /** - * Asynchronously wait for a result - */ - conveyor> on_receive(); -}; - -/** - * Client RPC reference structure - */ template -class rpc_client { - /** - * request the data from the remote - */ - template - remote_data request_data(id data); - - /** @todo - * Determine type based on Name - */ - /* - template - error_or< - id< - typename schema_member_type::type - > - > call(data_or_id inp); - */ -}; +class rpc_client; /** * Implementation of a remote server on the backend @@ -149,22 +112,5 @@ class remote_address { template class remote { static_assert(always_false, "Type of backend not supported"); - - /** - * Resolves an address for the remote - */ - conveyor> resolve_address(); - - /** - * Connect to a remote - */ - template - conveyor> connect(const remote_address& addr); - - /** - * Start listening - */ - template - rpc_server listen(); }; } -- cgit v1.2.3