template <>
class WireEventSender
Defined at line 2308 of file fidling/gen/sdk/fidl/fuchsia.lowpan.spinel/fuchsia.lowpan.spinel/cpp/fidl/fuchsia.lowpan.spinel/cpp/wire_messaging.h
Public Methods
fidl::OneWayStatus OnReadyForSendFrames (uint32_t number_of_frames)
Increases the number of additional frames that the Device is currently
ready to receive, as a method of outbound flow-control.
The Device uses this callback to regulate the speed at which
outbound frames are sent to it. This callback will be called
periodically to ensure low-latency frame delivery.
When this callback is invoked with a non-zero value, the device
is indicating that it is ready to receive the specified number
of additional frames.
This callback SHOULD NOT be invoked with a value of zero, and if
a zero value is received via this callback it MUST be ignored.
Frames MUST NOT be sent until this callback is first called
with a non-zero value.
A reasonable usage pattern would be for the device to first
invoke this callback with a value of 4, invoking it again with
a value of 2 after every second received outbound frame.
Inbound flow control is similarly accomplished via `ReadyToReceiveFrames()`.
fidl::OneWayStatus OnReceiveFrame (::fidl::VectorView<uint8_t> data)
The callback used to pass incoming Spinel frames to the LoWPAN
host stack.
See `ReadyToReceiveFrames()` for flow-control considerations.
fidl::OneWayStatus OnError (::fuchsia_lowpan_spinel::wire::Error error, bool did_close)
The callback used to indicate that an error has occurred.
If the resulting error caused the device to automatically close,
this is indicated via the `did_close` argument.