template <>
class Server
Defined at line 556 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/natural_messaging.h
Public Methods
void Server ()
Defined at line 559 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/natural_messaging.h
void StreamSocketWithOptions (StreamSocketWithOptionsRequest & request, StreamSocketWithOptionsCompleter::Sync & completer)
Requests a stream socket with the specified parameters and the creation
options.
void StreamSocket (StreamSocketRequest & request, StreamSocketCompleter::Sync & completer)
Requests a stream socket with the specified parameters.
void DatagramSocketDeprecated (DatagramSocketDeprecatedRequest & request, DatagramSocketDeprecatedCompleter::Sync & completer)
Requests a datagram socket with the specified parameters.
TODO(https://fxbug.dev/42165881): Remove this method once no more callers rely on it.
void DatagramSocket (DatagramSocketRequest & request, DatagramSocketCompleter::Sync & completer)
Requests a datagram socket with the specified parameters.
void DatagramSocketWithOptions (DatagramSocketWithOptionsRequest & request, DatagramSocketWithOptionsCompleter::Sync & completer)
Requests a datagram socket with the specified parameters and the creation
options.
void InterfaceIndexToName (InterfaceIndexToNameRequest & request, InterfaceIndexToNameCompleter::Sync & completer)
Looks up an interface by its index and returns its name. Returns
`ZX_ERR_NOT_FOUND` if the specified index doesn't exist.
void InterfaceNameToIndex (InterfaceNameToIndexRequest & request, InterfaceNameToIndexCompleter::Sync & completer)
Looks up an interface by its name and returns its index. Returns
`ZX_ERR_NOT_FOUND` if the specified name doesn't exist.
void InterfaceNameToFlags (InterfaceNameToFlagsRequest & request, InterfaceNameToFlagsCompleter::Sync & completer)
Looks up an interface by its name and returns its flags. Returns
`ZX_ERR_NOT_FOUND` if the specified name doesn't exist.
void GetInterfaceAddresses (GetInterfaceAddressesCompleter::Sync & completer)
Requests a list of [`fuchsia.posix.socket.InterfaceAddresses`]
describing the network interfaces on the system.
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 560 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/natural_messaging.h