diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-18 00:22:09 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-18 00:22:09 +0100 |
commit | 0906dff296214bbff9f0e08a3bebc8c58758aa3f (patch) | |
tree | b62c60304e382439173710d267966d5236ec2c40 | |
parent | 89ee081584efbd215ad7780ee6500c387d776845 (diff) |
io,codec,io_codec: RPC work
-rw-r--r-- | modules/codec/c++/rpc.hpp | 2 | ||||
-rw-r--r-- | modules/io_codec/c++/rpc.hpp | 12 | ||||
-rw-r--r-- | modules/tools/c++/c_gen_iface.hpp | 6 |
3 files changed, 19 insertions, 1 deletions
diff --git a/modules/codec/c++/rpc.hpp b/modules/codec/c++/rpc.hpp index e920a10..63ec014 100644 --- a/modules/codec/c++/rpc.hpp +++ b/modules/codec/c++/rpc.hpp @@ -29,6 +29,6 @@ class remote { rpc_client<T,Iface> connect(); template<typename Iface> - rpc_server<T,Iface> listen(); + rpc_server<T,Iface> listen(network& net); }; } diff --git a/modules/io_codec/c++/rpc.hpp b/modules/io_codec/c++/rpc.hpp index 947ce54..7a8e93b 100644 --- a/modules/io_codec/c++/rpc.hpp +++ b/modules/io_codec/c++/rpc.hpp @@ -16,6 +16,18 @@ public: template<typename Interface> conveyor<rpc_client<rmt::Network, Interface>> connect(); + + template<typename Interface> + conveyor<rpc_server<rmt::Network, Interface>> listen(network& net){ + + } +}; + +template<typename Interface> +class rpc_server<rmt::Network, Interface> { +private: +public: + }; template<template Interface> diff --git a/modules/tools/c++/c_gen_iface.hpp b/modules/tools/c++/c_gen_iface.hpp index 64ac5a5..8eb0bca 100644 --- a/modules/tools/c++/c_gen_iface.hpp +++ b/modules/tools/c++/c_gen_iface.hpp @@ -507,6 +507,12 @@ struct lang_bind<schema::Function<Input, Output>, binding::SyncC> { } } { + auto eov = lang_bind_helper::append_string(src, ""); + if(eov.is_error()){ + return eov; + } + } + { auto eov = lang_bind_helper::append_string(src, "return 0;\n}\n\n"); if(eov.is_error()){ return eov; |