template <>
class WireServer
Defined at line 1545 of file fidling/gen/sdk/fidl/fuchsia.net.name/fuchsia.net.name/cpp/fidl/fuchsia.net.name/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_net_name::DnsServerWatcher>|
and |::fidl::ServerEnd
<
::fuchsia_net_name::DnsServerWatcher>|).
Public Methods
void WatchServers (WatchServersCompleter::Sync & completer)
Returns a list of DNS servers.
First call always returns a snapshot of the current list of servers or blocks if an empty
list would be returned. Subsequent calls will block until the list of servers changes.
The list of servers changes over time by configuration or network topology changes,
expiration, etc. Callers must repeatedly call `WatchServers` and replace any previously
returned `servers` with new ones to avoid using stale or expired entries.
It is invalid to call this method while a previous call is pending. Doing so will cause the
server end of the protocol to be closed.
- response `servers` The list of servers to use for DNS resolution, in priority order.
void WireServer ()
Defined at line 1548 of file fidling/gen/sdk/fidl/fuchsia.net.name/fuchsia.net.name/cpp/fidl/fuchsia.net.name/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 1549 of file fidling/gen/sdk/fidl/fuchsia.net.name/fuchsia.net.name/cpp/fidl/fuchsia.net.name/cpp/wire_messaging.h