template <>

class WireSyncClientImpl

Defined at line 9585 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/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_virtualization::HostVsockEndpoint>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::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.

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

::fidl::WireResult< ::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)

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