summaryrefslogtreecommitdiff
path: root/modules/codec/c++/remote_loopback.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/remote_loopback.hpp')
-rw-r--r--modules/codec/c++/remote_loopback.hpp16
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