diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-15 16:30:04 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-15 16:30:04 +0200 |
commit | 6debd8a04fc37975a9f2a981b993955a30c69b8b (patch) | |
tree | 91236b8009a17c5026a54ca573f0485852a97ea5 /modules/io_codec/c++/rpc.hpp | |
parent | 24d83f549a6fba7b23a0c048e1512d00ed704e0d (diff) |
io_codec: Fixed rpc issues and removed includes for opencl in headers
Diffstat (limited to 'modules/io_codec/c++/rpc.hpp')
-rw-r--r-- | modules/io_codec/c++/rpc.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/io_codec/c++/rpc.hpp b/modules/io_codec/c++/rpc.hpp index 3caa808..547eea3 100644 --- a/modules/io_codec/c++/rpc.hpp +++ b/modules/io_codec/c++/rpc.hpp @@ -34,7 +34,7 @@ public: /** * Client RPC reference structure */ -template<typename Iface, typename Remote> +template<typename Iface, typename Encode, typename Remote> class rpc_client { /** * request the data from the remote @@ -58,12 +58,12 @@ class rpc_client { /** * Implementation of a remote server on the backend */ -template<typename Iface, typename Remote> +template<typename Iface, typename Encode, typename Remote> class rpc_server { private: - interface<Iface> iface_; + interface<Iface, Encode> iface_; public: - rpc_server(interface<Iface> iface): + rpc_server(interface<Iface, Encode> iface): iface_{std::move(iface)} {} }; @@ -94,13 +94,13 @@ class remote { /** * Connect to a remote */ - template<typename Iface> - conveyor<rpc_client<Iface, Remote>> connect(const remote_address<Remote>& addr); + template<typename Iface, typename Encode> + conveyor<rpc_client<Iface, Encode, Remote>> connect(const remote_address<Remote>& addr); /** * Start listening */ - template<typename Iface> - rpc_server<Iface, Remote> listen(); + template<typename Iface, typename Encode> + rpc_server<Iface, Encode, Remote> listen(); }; } |