diff options
Diffstat (limited to 'c++/io_codec/rpc.h')
-rw-r--r-- | c++/io_codec/rpc.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/c++/io_codec/rpc.h b/c++/io_codec/rpc.h deleted file mode 100644 index 020bf96..0000000 --- a/c++/io_codec/rpc.h +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include <forstio/codec/rpc.h> - -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); -}; -} |