template <>
class Server
Defined at line 681 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 684 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h
void StartInstance (StartInstanceRequest & request, StartInstanceCompleter::Sync & completer)
Starts the instance identified by the given moniker. Relative
monikers must start with "./".
The client can pass in the server end of a channel
for the fuchsia.component.Binder protocol. This protocol
will notify the client when the instance has stopped.
The function returns once the instance has been started. Calling
StartInstance() when the instance is already running is a no-op, but
it will connect the Binder channel if a valid handle is provided.
void StartInstanceWithArgs (StartInstanceWithArgsRequest & request, StartInstanceWithArgsCompleter::Sync & completer)
void StopInstance (StopInstanceRequest & request, StopInstanceCompleter::Sync & completer)
Stops the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been stopped.
void ResolveInstance (ResolveInstanceRequest & request, ResolveInstanceCompleter::Sync & completer)
Resolves the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been resolved.
void UnresolveInstance (UnresolveInstanceRequest & request, UnresolveInstanceCompleter::Sync & completer)
Unresolves the component designated by the provided moniker. Relative
monikers must start with "./".
The function returns once the instance has been unresolved.
void CreateInstance (CreateInstanceRequest & request, CreateInstanceCompleter::Sync & completer)
Creates a new child instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the child instance has been added to the topology.
void DestroyInstance (DestroyInstanceRequest & request, DestroyInstanceCompleter::Sync & completer)
Destroys the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the child instance no longer exists in the topology.
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 685 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h