template <>

class WireSyncBufferClientImpl

Defined at line 9616 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h

Public Methods

::fidl::WireUnownedResult< ::fuchsia_virtualization::HostVsockEndpoint::Listen> Listen (uint32_t port, ::fidl::ClientEnd< ::fuchsia_virtualization::HostVsockAcceptor> && acceptor)

Instructs the device to listen for guest initiated connections to a given port by

using `acceptor` when the guest creates a connection.

Possible errors:

- ZX_ERR_ALREADY_BOUND: A client is already listening on this port.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_virtualization::HostVsockEndpoint::Connect> Connect (uint32_t guest_port)

Attempts to create a vsock connection to a guest on 'guest_port'. Uses a dynamically chosen

ephemeral host port.

Possible errors:

- ZX_ERR_NO_RESOURCES: The device couldn't allocate an unused host port.

- ZX_ERR_CONNECTION_REFUSED: The guest refused this connection.

Other errors are related to socket creation, see

[zx_socket_create](https://fuchsia.dev/fuchsia-src/reference/syscalls/socket_create.md)

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.