template <>

class WireServer

Defined at line 2941 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_vsock::Provider>|

and |::fidl::ServerEnd

<

::fuchsia_vsock::Provider>|).

Public Methods

void StreamSocket (::fuchsia_vsock::wire::ProviderStreamSocketRequest * request, StreamSocketCompleter::Sync & completer)

Create a new virtio socket in stream mode.

void GetCid (GetCidCompleter::Sync & completer)

Query the current context id of the system. The local CID is should not

necessary in interactions with the same device; instead you may pass

`VMADDR_CID_LOCAL`, which will alias to local CID this returns. The cid returned

by this method is useful for debugging or if you have some other communication

channel to a different host and you would like to send them your CID to then

establish a vsock connection on.

void WireServer ()

Defined at line 2944 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 2945 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/wire_messaging.h