A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::RunOptions Struct Reference

What a run needs besides the program. More...

#include <cpp/a11/flow/runtime.h>

Public Attributes

std::shared_ptr< HostBridge > bridge
 Who answers the questions only the host can: coercion into a registered type, and reading and writing a chunk.
 
std::shared_ptr< net::WireStream > dispatch_stream
 For a flow a client runs over a session it already holds: the call steps that belong to the peer are bound to this stream, and the flow's own action is not.
 

Detailed Description

What a run needs besides the program.

Member Data Documentation

◆ bridge

std::shared_ptr<HostBridge> a11::flow::RunOptions::bridge

Who answers the questions only the host can: coercion into a registered type, and reading and writing a chunk.

The native registry's answers are used when this is null.

◆ dispatch_stream

std::shared_ptr<net::WireStream> a11::flow::RunOptions::dispatch_stream

For a flow a client runs over a session it already holds: the call steps that belong to the peer are bound to this stream, and the flow's own action is not.

Binding the flow itself would end the stream when the flow finished, and the session could then dispatch nothing – so a client that passed its stream as the action's would find its second flow unable to reach the peer at all.


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