template <>

class WireServer

Defined at line 2134 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_hardware_network::PortWatcher>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_network::PortWatcher>|).

Public Methods

void Watch (WatchCompleter::Sync & completer)

Get the next port event.

The first N calls return [`DevicePortEvent.existing`] where N is the

number of ports present on the device at the time of the watcher's

creation. The next call returns [`DevicePortEvent.idle`] to indicate the

end of existing ports. Subsequent calls block until a port is added

([`DevicePortEvent.added`]) or removed ([`DevicePortEvent.removed`]).

The server closes the `PortWatcher` channel with `ZX_ERR_CANCELED` if

the number of unread events reaches a server-selected limit that is at

least two times [`MAX_PORTS`]. Clients are encouraged to maintain a

hanging call to `Watch` at all times to avoid triggering this condition.

- response `event` next port event.

void WireServer ()

Defined at line 2137 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/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 2138 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h