template <>
class Server
Defined at line 460 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h
Public Methods
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. The channel will have `SIGNAL_STREAM_INCOMING` asserted
by the server when there is a connection ready to accept.
void Accept (AcceptRequest & request, AcceptCompleter::Sync & completer)
Accept a pending connection from the queue after `Listen` was invoked and
`SIGNAL_STREAM_INCOMING` was signaled.
void Server ()
Defined at line 463 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 464 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h