diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-05 16:50:33 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-05 16:50:33 +0200 |
commit | 614d0bf07789457a97d194c4af9cc7393f871351 (patch) | |
tree | fffe8f702589603b397497e14ca217428c98edec /modules/codec/c++/remote_loopback.hpp | |
parent | 9f320474f1c19861d46f6c42a09f7bba9dc919bc (diff) |
Working on loopback data transmission
Diffstat (limited to 'modules/codec/c++/remote_loopback.hpp')
-rw-r--r-- | modules/codec/c++/remote_loopback.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/codec/c++/remote_loopback.hpp b/modules/codec/c++/remote_loopback.hpp index 22ca15f..2949243 100644 --- a/modules/codec/c++/remote_loopback.hpp +++ b/modules/codec/c++/remote_loopback.hpp @@ -1,9 +1,9 @@ #pragma once -#include <forstio/codec/interface.hpp> - #include <variant> +#include "interface.hpp" +#include "remote.hpp" #include "transfer_loopback.hpp" namespace saw { @@ -37,7 +37,7 @@ class rpc_client<Iface, Encoding, Storage, rmt::Loopback> { * request the data from the remote */ template<typename IdT> - remote_data<IdT, Encoding, Storage, Remote> request_data(id<IdT> data); + remote_data<IdT, Encoding, Storage, rmt::Loopback> request_data(id<IdT> data); /** @todo * Determine type based on Name @@ -64,19 +64,23 @@ private: const remote_address<rmt::Loopback>* addr_; InterfaceT iface_; public: - rpc_server(const remode_address<rmt::Loopback>& addr__, InterfaceT iface__): + rpc_server(const remote_address<rmt::Loopback>& addr__, InterfaceT iface__): addr_{&addr__}, iface_{std::move(iface__)} {} + + // error_or<id<>> }; template<> class remote<rmt::Loopback> { - +public: /** * Resolves an address for the remote */ - conveyor<remote_address<rmt::Loopback>> resolve_address(); + error_or<own<remote_address<rmt::Loopback>>> parse_address(){ + return heap<remote_address<rmt::Loopback>>(); + } /** * Connect to a remote |