class StubController
Defined at line 27 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
Controls the server endpoint of a FIDL channel.
A |StubController| controls the protocol-specific "stub" object. Stub
objects are used on the server endpoint of a FIDL channel to decode messages
received over the channel and dispatch them to an implementation of the
protocol.
Public Methods
void StubController ()
Defined at line 14 of file ../../sdk/lib/fidl/hlcpp/internal/stub_controller.cc
void ~StubController ()
Defined at line 16 of file ../../sdk/lib/fidl/hlcpp/internal/stub_controller.cc
zx_status_t Send (const fidl_type_t * type, HLCPPOutgoingMessage message)
Send a message over the channel.
Returns an error if the message fails to encode properly or if the message
cannot be written to the channel.
Defined at line 18 of file ../../sdk/lib/fidl/hlcpp/internal/stub_controller.cc
void StubController (const StubController & )
Defined at line 32 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
StubController & operator= (const StubController & )
Defined at line 33 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
MessageReader & reader ()
The |MessageReader| that is listening for messages sent by the client.
Defined at line 36 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
const MessageReader & reader ()
Defined at line 37 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
Stub * stub ()
The protocol-specific object that decodes messages and dispatches them to
an implementation of the protocol.
The stub must be set to a non-null value before messages are read from the
underlying channel. Typically, the caller will set a non-null stub before
binding a channel to the |MessageReader|.
Defined at line 45 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h
void set_stub (Stub * stub)
Defined at line 46 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub_controller.h