![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
Base class for generated ProxyClient classes that implement a C++ interface and forward calls to a capnp interface. More...
#include <proxy.h>
Public Types | |
using | Interface = Interface_ |
using | Impl = Impl_ |
using | Sub = ProxyClient< Interface > |
using | Super = ProxyClientBase< Interface, Impl > |
Public Member Functions | |
ProxyClientBase (typename Interface::Client client, Connection *connection, bool destroy_connection) | |
Construct libmultiprocess client object wrapping Cap'n Proto client object with a reference to the associated mp::Connection object. More... | |
~ProxyClientBase () noexcept | |
Static Public Member Functions | |
static void | construct (Super &) |
static void | destroy (Super &) |
Public Attributes | |
Interface::Client | m_client |
ProxyContext | m_context |
Base class for generated ProxyClient classes that implement a C++ interface and forward calls to a capnp interface.
using mp::ProxyClientBase< Interface_, Impl_ >::Impl = Impl_ |
using mp::ProxyClientBase< Interface_, Impl_ >::Interface = Interface_ |
using mp::ProxyClientBase< Interface_, Impl_ >::Sub = ProxyClient<Interface> |
using mp::ProxyClientBase< Interface_, Impl_ >::Super = ProxyClientBase<Interface, Impl> |
mp::ProxyClientBase< Interface, Impl >::ProxyClientBase | ( | typename Interface::Client | client, |
Connection * | connection, | ||
bool | destroy_connection | ||
) |
Construct libmultiprocess client object wrapping Cap'n Proto client object with a reference to the associated mp::Connection object.
The destroy_connection option determines whether destroying this client object closes the connection. It is set to true for the ProxyClient<InitInterface> object returned by ConnectStream, to let IPC clients close the connection by freeing the object. It is false for other client objects so they can be destroyed without affecting the connection.
Definition at line 398 of file proxy-io.h.
|
noexcept |
|
inlinestatic |
|
inlinestatic |
Interface::Client mp::ProxyClientBase< Interface_, Impl_ >::m_client |
ProxyContext mp::ProxyClientBase< Interface_, Impl_ >::m_context |