class Stub

Defined at line 20 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub.h

An interface for dispatching FIDL messages to a protocol implementation.

Used by |StubController| to supply both a |Message| and a |PendingResponse|

object to protocol implementations.

Public Methods

void ~Stub ()

Defined at line 10 of file ../../sdk/lib/fidl/hlcpp/internal/stub.cc

zx_status_t Dispatch_ (HLCPPIncomingMessage message, PendingResponse response)

A new message has arrived.

If the message expects a response, the |PendingResponse| object's

|needs_response()| method will return true.

The memory backing the message will remain valid until this method returns,

at which point the memory might or might not be deallocated.

The |PendingResponse| object has affinity for the current thread and is not

safe to transport to another thread.

MessageSender * sender_ ()

The protocol-agnostic object that can send messages.

The sender must be set to a non-null value before sending events

through this stub.

Defined at line 40 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub.h

void set_sender (MessageSender * sender)

Defined at line 41 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/stub.h