Bitcoin Core  28.1.0
P2P Digital Currency
echo.capnp.proxy-server.c++
Go to the documentation of this file.
1 // Generated by mpgen from ipc/capnp/echo.capnp
2 
4 #include <mp/proxy-types.h>
5 
6 namespace mp {
7 kj::Promise<void> ProxyServer<ipc::capnp::messages::Echo>::destroy(DestroyContext call_context) {
8  return serverInvoke(*this, call_context, MakeServerField<0, Accessor<echo_fields::Context, FIELD_IN | FIELD_BOXED>>(ServerDestroy()));
9 }
10 kj::Promise<void> ProxyServer<ipc::capnp::messages::Echo>::echo(EchoContext call_context) {
11  return serverInvoke(*this, call_context, MakeServerField<0, Accessor<echo_fields::Context, FIELD_IN | FIELD_BOXED>>(MakeServerField<1, Accessor<echo_fields::Echo, FIELD_IN | FIELD_BOXED>>(Make<ServerRet, Accessor<echo_fields::Result, FIELD_OUT | FIELD_BOXED>>(ServerCall()))));
12 }
13 } // namespace mp
CSerializedNetMsg Make(std::string msg_type, Args &&... args)
Functions to serialize / deserialize common bitcoin types.
Definition: common-types.h:50
static RPCHelpMan echo(const std::string &name)
Definition: node.cpp:272
kj::Promise< void > destroy(DestroyContext call_context) override