template <>

class WireSyncClientImpl

Defined at line 4931 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_hardware_network::Device>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_network::Device::GetInfo> GetInfo ()

Obtain information about device

- response `info` device information.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_network::Device::OpenSession> OpenSession (::fidl::StringView session_name, ::fuchsia_hardware_network::wire::SessionInfo session_info)

Opens a new session with the network device.

+ request `session_name` is used as a debugging label attached to this

session.

+ request `session_info` contains the necessary information to setup the

session's data exchange.

- response `session` a handle to control the session.

- response `fifos` data-plane FIFOs attached to the session.

* error `ZX_ERR_NOT_SUPPORTED` if `session_info` contains not supported

frame types or descriptors set up.

* error `ZX_ERR_INVALID_ARGS` if `session_info` is missing fields or

contains invalid information.

* error `ZX_ERR_INTERNAL` if the data VMO is rejected by the underlying

device.

Allocates 208 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus GetPort (const ::fuchsia_hardware_network::wire::PortId & id, ::fidl::ServerEnd< ::fuchsia_hardware_network::Port> && port)

Connects to a port the given `id`.

+ request `id` port to connect to.

+ request `port` server end of port channel.

`port` is closed with a `ZX_ERR_NOT_FOUND` epitaph if no port with `id`

exists.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus GetPortWatcher (::fidl::ServerEnd< ::fuchsia_hardware_network::PortWatcher> && watcher)

Connects a [`PortWatcher`] to this device.

+ request `watcher` server end of watcher channel.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus Clone (::fidl::ServerEnd< ::fuchsia_hardware_network::Device> && device)

Establishes a new connection to this device.

+ request `device` the server end for the new connection.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.