template <>
class WireWeakAsyncBufferClientImpl
Defined at line 4092 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h
Public Methods
::fidl::internal::WireBufferThenable< ::fuchsia_net_tun::Device::WriteFrame> WriteFrame (::fuchsia_net_tun::wire::Frame frame)
Writes a frame to the device (data coming from network-end).
If the device was created with the
[`fuchsia.net.tun/DeviceConfig.blocking`] option set to `true`, calls to
`WriteFrame` block until there is one buffer available to fulfill the
request.
+ request `frame` inbound frame data and metadata.
* error `ZX_ERR_NOT_FOUND` if [`Frame.port`] references an unknown port.
* error `ZX_ERR_INVALID_ARGS` if `frame` is invalid.
* error `ZX_ERR_BAD_STATE` if the device is offline.
* error `ZX_ERR_NO_RESOURCES` if more than
[`fuchsia.net.tun/MAX_PENDING_OPERATIONS`] calls to `WriteFrame` are
pending.
* error `ZX_ERR_SHOULD_WAIT` if `blocking` is set to `false` and there
are no buffers available to fulfill the request.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_net_tun::Device::ReadFrame> ReadFrame ()
Gets the next frame from the device (data coming from host-end).
If the device was created with the
[`fuchsia.net.tun/DeviceConfig.blocking`] option set to `true`, calls to
`ReadFrame` block until there is a frame available to be read.
- response `frame` outbound frame data and metadata.
* error `ZX_ERR_NO_RESOURCES` if more than
[`fuchsia.net.tun/MAX_PENDING_OPERATIONS`] calls to `ReadFrame` are
pending.
* error `ZX_ERR_SHOULD_WAIT` if `blocking` is set to `false` and there
are no frames to be read.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_net_tun::Device::GetSignals> GetSignals ()
Retrieves signals eventpair.
- response `signals` an eventpair that is signalled with
`SIGNAL_READABLE` and `SIGNAL_WRITABLE` when read and write buffers are
available, respectively.
Caller provides the backing storage for FIDL message.