template <>
class WireServer
Defined at line 1198 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::Listener>|
and |::fidl::ServerEnd
<
::fuchsia_vsock::Listener>|).
Public Methods
void Listen (::fuchsia_vsock::wire::ListenerListenRequest * 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 (::fuchsia_vsock::wire::ListenerAcceptRequest * request, AcceptCompleter::Sync & completer)
Accept a pending connection from the queue after `Listen` was invoked and
`SIGNAL_STREAM_INCOMING` was signaled.
void WireServer ()
Defined at line 1201 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 1202 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/wire_messaging.h