diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-07 10:22:17 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-07 10:22:17 +0100 |
commit | d2520819150d9a794baf7505d7d02dadeacd5266 (patch) | |
tree | 4bd9faa4f75aa0ed148bf7f8a70e8b058826fd57 /modules/io_codec/rpc.hpp | |
parent | 617538aa3278a4ca03b017d92047ba6d4027f30b (diff) |
io_codec: Moved to new dir structure
Diffstat (limited to 'modules/io_codec/rpc.hpp')
-rw-r--r-- | modules/io_codec/rpc.hpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/io_codec/rpc.hpp b/modules/io_codec/rpc.hpp deleted file mode 100644 index eec149f..0000000 --- a/modules/io_codec/rpc.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include <forstio/codec/rpc.hpp> - -namespace saw { -namespace rmt { -struct Network {}; -} - -template<> -class remote<rmt::Network> { -private: - std::string addr_str_; -public: - remote(std::string addr_str); - - template<typename Interface> - conveyor<rpc_client<rmt::Network, Interface>> create_client(); -}; - -template<template Interface> -class rpc_client<rmt::Network, Interface> { -private: - own<io_stream> stream_; -public: - rpc_client(own<io_stream> stream); - - template<typename T> - remote_result<typename response<T>::type> call(typename request<T>::type req); -}; -} |