template <>
class Server
Defined at line 1576 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h
Public Methods
void Close (CloseCompleter::Sync & completer)
Terminates the connection.
After calling `Close`, the client must not send any other requests.
Servers, after sending the status response, should close the connection
regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling `Close` without knowing when the close has completed or its
status.
void Bind (BindRequest & request, BindCompleter::Sync & completer)
Bind this socket to a specific address.
void Connect (ConnectRequest & request, ConnectCompleter::Sync & completer)
Initiate a connection to |remote_address|.
When the connection attempt completes the signal SIGNAL_STREAM_CONNECTED
will be asserted on the data plane zx.Handle:SOCKET.
void Listen (ListenRequest & request, ListenCompleter::Sync & completer)
Places this socket into listening mode with a specified backlog.
When a new connection is available the signal SIGNAL_STREAM_INCOMING
will be asserted on the data plane zx.Handle:SOCKET.
void Accept (AcceptRequest & request, AcceptCompleter::Sync & completer)
Accepts a connection from this socket's listen backlog and binds it to
|socket| with data plane |data|.
If |want_addr| is true, returns the address of the accepted socket.
When this call returns, if SIGNAL_STREAM_INCOMING is asserted another
incoming connection is available.
void GetSockName (GetSockNameCompleter::Sync & completer)
Retrieves the local socket address.
void GetPeerName (GetPeerNameCompleter::Sync & completer)
Retrieves the remote socket address.
void GetError (GetErrorCompleter::Sync & completer)
Get `SOL_SOCKET` -> `SO_ERROR`
void Server ()
Defined at line 1579 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 1580 of file fidling/gen/sdk/fidl/fuchsia.vsock/fuchsia.vsock/cpp/fidl/fuchsia.vsock/cpp/natural_messaging.h