diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-22 17:44:27 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-22 17:44:27 +0200 |
commit | 977ac8bce989285eaabc76c4ed8571ce5fd6793a (patch) | |
tree | 08df4e53e4f2ea947662cc6b1d207ed852292474 /modules/remote/c++/remote_loopback.hpp | |
parent | fdf1b23129d73b27b28756e77da9b02215878721 (diff) |
wip
Diffstat (limited to 'modules/remote/c++/remote_loopback.hpp')
-rw-r--r-- | modules/remote/c++/remote_loopback.hpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/remote/c++/remote_loopback.hpp b/modules/remote/c++/remote_loopback.hpp index 76aab69..10ac79c 100644 --- a/modules/remote/c++/remote_loopback.hpp +++ b/modules/remote/c++/remote_loopback.hpp @@ -55,6 +55,16 @@ class rpc_client<Iface, Encoding, Storage, rmt::Loopback> { template<> class remote_address<rmt::Loopback> { +private: + data<schema::UInt64> addr_id_; +public: + remote_address(data<schema::UInt64> addr_id__): + addr_id_{addr_id__} + {} + + const data<schema::UInt64>& get_address_id() const { + return addr_id_; + } }; template<typename Iface, typename Encode, typename Storage> @@ -75,12 +85,13 @@ public: template<> class remote<rmt::Loopback> { +private: public: /** * Resolves an address for the remote */ - error_or<own<remote_address<rmt::Loopback>>> parse_address(){ - return heap<remote_address<rmt::Loopback>>(); + error_or<own<remote_address<rmt::Loopback>>> parse_address(data<schema::UInt64> id){ + return heap<remote_address<rmt::Loopback>>(id); } /** |