template <typename Interface>
class EventSender
Defined at line 27 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
Sends events for |Interface| on a given channel.
An |EventSender| lets its client send events on a given channel. This class
differs from |Binding| in that |EventSender| does not listen for incoming
messages on the channel, which allows |EventSender| to send messages from
multiple threads safely.
See also:
* |Binding|, which can receive messages as well as send events.
Public Methods
void EventSender<Interface> (zx::channel channel)
Constructs an event sender that sends events through |channel|.
Defined at line 30 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
void EventSender<Interface> (InterfaceRequest<Interface> request)
Constructs an event sender that sends events through the underlying channel
in |request|.
Defined at line 36 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
void EventSender<Interface> (const EventSender<Interface> & )
Defined at line 38 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
EventSender<Interface> & operator= (const EventSender<Interface> & )
Defined at line 39 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
typename Interface::EventSender_ & events ()
The interface for sending events back to the client.
Defined at line 42 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
const zx::channel & channel ()
The underlying channel.
Defined at line 45 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h
zx::channel TakeChannel ()
Transfers ownership of the underlying channel to the caller.
Defined at line 48 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/event_sender.h