template <>
class WireServer
Defined at line 1168 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::LookupAdmin>|
and |::fidl::ServerEnd
<
::fuchsia_net_name::LookupAdmin>|).
Public Methods
void SetDnsServers (::fuchsia_net_name::wire::LookupAdminSetDnsServersRequest * request, SetDnsServersCompleter::Sync & completer)
Sets the DNS servers to `servers`
+ request `servers` The list of servers to use for domain name resolution, in priority
order. An empty list means no servers will be used and name resolution may fail. Each
`SocketAddress` in `servers` must be a valid unicast socket address. The list of servers
will be deduplicated.
* error Returns `ZX_ERR_INVALID_ARGS` if any of the provided addresses does not meet the
conditions above.
void GetDnsServers (GetDnsServersCompleter::Sync & completer)
Gets the DNS servers currently in use to resolve name lookups.
- response `servers` The list of servers in use by `LookupAdmin`, in priority order.
void WireServer ()
Defined at line 1171 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 1172 of file fidling/gen/sdk/fidl/fuchsia.net.name/fuchsia.net.name/cpp/fidl/fuchsia.net.name/cpp/wire_messaging.h