libpalliate v0.0.1
Palliate core library
RPC::Context Struct Reference

#include <context.h>

Public Types

enum  { server , client }
 

Public Member Functions

 Context (kj::AuthenticatedStream &&stream)
 
 Context (kj::AuthenticatedStream &&stream, capnp::Capability::Client interface)
 
template<typename T >
requires requires { typename T::Client; }
T::Client get_interface ()
 
capnp::Capability::Client bootstrap ()
 

Public Attributes

kj::AuthenticatedStream stream
 
capnp::TwoPartyVatNetwork network
 
capnp::RpcSystem< capnp::rpc::twoparty::VatId > rpc
 
enum RPC::Context:: { ... }  side
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
server 
client 

Constructor & Destructor Documentation

◆ Context() [1/2]

RPC::Context::Context ( kj::AuthenticatedStream &&  stream)
inlineexplicit

◆ Context() [2/2]

RPC::Context::Context ( kj::AuthenticatedStream &&  stream,
capnp::Capability::Client  interface 
)
inline

Member Function Documentation

◆ bootstrap()

capnp::Capability::Client Context::bootstrap ( )

◆ get_interface()

template<typename T >
requires requires { typename T::Client; }
T::Client RPC::Context::get_interface ( )
inline

Member Data Documentation

◆ network

capnp::TwoPartyVatNetwork RPC::Context::network

◆ rpc

capnp::RpcSystem<capnp::rpc::twoparty::VatId> RPC::Context::rpc

◆ 

enum { ... } RPC::Context::side

◆ stream

kj::AuthenticatedStream RPC::Context::stream

The documentation for this struct was generated from the following files: