template <>

class WireServer

Defined at line 2311 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_posix_socket::Provider>|

and |::fidl::ServerEnd

<

::fuchsia_posix_socket::Provider>|).

Public Methods

void StreamSocketWithOptions (::fuchsia_posix_socket::wire::ProviderStreamSocketWithOptionsRequest * request, StreamSocketWithOptionsCompleter::Sync & completer)

Requests a stream socket with the specified parameters and the creation

options.

void StreamSocket (::fuchsia_posix_socket::wire::ProviderStreamSocketRequest * request, StreamSocketCompleter::Sync & completer)

Requests a stream socket with the specified parameters.

void DatagramSocketDeprecated (::fuchsia_posix_socket::wire::ProviderDatagramSocketDeprecatedRequest * 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 (::fuchsia_posix_socket::wire::ProviderDatagramSocketRequest * request, DatagramSocketCompleter::Sync & completer)

Requests a datagram socket with the specified parameters.

void DatagramSocketWithOptions (::fuchsia_posix_socket::wire::ProviderDatagramSocketWithOptionsRequest * request, DatagramSocketWithOptionsCompleter::Sync & completer)

Requests a datagram socket with the specified parameters and the creation

options.

void InterfaceIndexToName (::fuchsia_posix_socket::wire::ProviderInterfaceIndexToNameRequest * 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 (::fuchsia_posix_socket::wire::ProviderInterfaceNameToIndexRequest * 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 (::fuchsia_posix_socket::wire::ProviderInterfaceNameToFlagsRequest * 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.

void WireServer ()

Defined at line 2314 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/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 2315 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/wire_messaging.h