template <>

class WireServer

Defined at line 604 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces/fuchsia.net.interfaces/cpp/fidl/fuchsia.net.interfaces/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_net_interfaces::Watcher>|

and |::fidl::ServerEnd

<

::fuchsia_net_interfaces::Watcher>|).

Public Methods

void Watch (WatchCompleter::Sync & completer)

Hanging get for an interface addition/deletion change.

Clients should only have one call of this method at a time; a second

call to this method while a call is already pending will cause the

server end of the protocol to be closed.

If there are N interfaces present at the time the server end of the

protocol is initialized, then the first N invocations of this method

will return [`Event.existing`] followed by a single [`Event.idle`]

indicating that all existing interfaces have been sent. Subsequent calls

will immediately return if there is a change to be reported, or block

until a change occurs.

The server may choose to coalesce property change events, e.g. when

multiple independent property changes occur. As a result, clients cannot

assume that the order in which they observe the interface changes is the

order in which the changes occurred.

- response `event` the interface change event.

void WireServer ()

Defined at line 607 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces/fuchsia.net.interfaces/cpp/fidl/fuchsia.net.interfaces/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 608 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces/fuchsia.net.interfaces/cpp/fidl/fuchsia.net.interfaces/cpp/wire_messaging.h