template <>
class Server
Defined at line 2343 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h
Public Methods
void Server ()
Defined at line 2346 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h
void Validate (ValidateRequest & request, ValidateCompleter::Sync & completer)
Routes all incoming and exposed capabilities of a component identified by the given
moniker. If the routing failed, an error is returned in the response.
This function may cause components to be resolved.
Errors:
* INVALID_ARGUMENTS: The given moniker is not valid.
* INSTANCE_NOT_FOUND: No instance was found matching the given moniker.
void Route (RouteRequest & request, RouteCompleter::Sync & completer)
Routes a component's used or exposed capabilities, and returns
information about them.
If `targets` is empty, returns results for all the component's used and
exposed capabilities. Otherwise, returns only results for capabilities
specified in `targets`.
This method only supports routing namespace capabilities (protocols,
directories, services, and storage).
Errors:
* INVALID_ARGUMENTS: The given moniker or name is not valid, or `name`
is not a namespace capability.
* INSTANCE_NOT_FOUND: No instance was found matching the given moniker.
* RESOURCE_NOT_FOUND: No capability was found matching one of the given names.
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 ~Server ()
Defined at line 2347 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h