template <>

class WireServer

Defined at line 2303 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::Connector>|

and |::fidl::ServerEnd

<

::fuchsia_vsock::Connector>|).

Public Methods

void Connect (::fuchsia_vsock::wire::ConnectorConnectRequest * request, ConnectCompleter::Sync & completer)

Attempt to establish a connection to the specified remote cid/port pair.

No local port is specified as an ephemeral one will automatically be allocated.

void Listen (::fuchsia_vsock::wire::ConnectorListenRequest * request, ListenCompleter::Sync & completer)

Registers a listener for a local port. There can only be one listener for

a single port at a time.

void Bind (::fuchsia_vsock::wire::ConnectorBindRequest * request, BindCompleter::Sync & completer)

Registers a listener for a local port. There can only be one listener for

a single port at a time.

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 2306 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 2307 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/wire_messaging.h