template <>
class Server
Defined at line 785 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h
Public Methods
void Connect (ConnectRequest & 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 (ListenRequest & 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 (BindRequest & 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 Server ()
Defined at line 788 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_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 ~Server ()
Defined at line 789 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h