class MessageHandler

Defined at line 24 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/message_handler.h

An interface for receiving FIDL messages.

Used by |MessageReader| to call back into its client whenever it reads a

message from the channel.

Public Methods

void ~MessageHandler ()

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

zx_status_t OnMessage (HLCPPIncomingMessage message)

A new message has arrived.

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

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

void OnChannelGone ()

The channel from which the messages were being read is gone.

The channel's peer might have been closed or the |MessageReader| might have

unbound from the channel. In either case, implementations that keep

per-channel state should reset their state when this method is called.

Defined at line 12 of file ../../sdk/lib/fidl/hlcpp/internal/message_handler.cc