template <>

class Server

Defined at line 1023 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h

Public Methods

void Server ()

Defined at line 1026 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h

void StreamSocket (StreamSocketRequest & 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.

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 ~Server ()

Defined at line 1027 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h