class ProxyController
Defined at line 26 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
Controls the client endpoint of a FIDL channel.
A |ProxyController| controls the protocol-specific "proxy" object. Proxy
objects are used on the client endpoint of a FIDL channel to encode messages
into the channel and send them to the server endpoint, whose "stub" object
decodes them and dispatches them to an implementation of the protocol.
Public Methods
void ProxyController ()
Defined at line 27 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc
void ~ProxyController ()
Defined at line 29 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc
void ProxyController (const ProxyController & )
Defined at line 31 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
void ProxyController (ProxyController && )
Defined at line 31 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc
ProxyController & operator= (const ProxyController & )
Defined at line 32 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
ProxyController & operator= (ProxyController && )
Defined at line 37 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc
MessageReader & reader ()
The |MessageReader| that is listening for responses to messages sent by
this object.
Defined at line 39 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
const MessageReader & reader ()
Defined at line 40 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
void Send (const fidl_type_t * type, HLCPPOutgoingMessage message, std::unique_ptr<SingleUseMessageHandler> response_handler)
Send a message over the channel.
If |response_handler| is non-null, the message will be assigned a
transaction identifier before being encoded and sent over the channel. The
|response_handler| will be retained by the |ProxyController| until the
|ProxyController| receives a response to the message, at which time the
|ProxyController| will call the |OnMessage| method of the
|response_handler|.
Calls |error_handler_| on |reader_| upon failure to validate or write the
message.
Defined at line 47 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc
Proxy * proxy ()
The protocol-specific object that decodes messages and dispatches them to
an implementation of the protocol.
The proxy must be set to a non-null value before messages are read from the
underlying channel. Typically, the caller will set a non-null proxy before
binding a channel to the |MessageReader|.
Defined at line 48 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
void set_proxy (Proxy * proxy)
Defined at line 49 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/internal/proxy_controller.h
void Reset ()
Clears all the state associated with this |ProxyController|.
After this method returns, the |ProxyController| is in the same state it
would have been in if freshly constructed.
Defined at line 93 of file ../../sdk/lib/fidl/hlcpp/internal/proxy_controller.cc