template <>
class WireServer
Defined at line 1074 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_process::Launcher>|
and |::fidl::ServerEnd
<
::fuchsia_process::Launcher>|).
Public Methods
void Launch (::fuchsia_process::wire::LauncherLaunchRequest * request, LaunchCompleter::Sync & completer)
Creates and starts the process described by `info`.
After processing this message, the `Launcher` is reset to its initial
state and is ready to launch another process.
`process` is present if, and only if, `status` is `ZX_OK`.
void CreateWithoutStarting (::fuchsia_process::wire::LauncherCreateWithoutStartingRequest * request, CreateWithoutStartingCompleter::Sync & completer)
Creates the process described by `info` but does not start it.
After processing this message, the `Launcher` is reset to its initial
state and is ready to launch another process.
The caller is responsible for calling `zx_process_start` using the data
in `ProcessStartData` to actually start the process.
`data` is present if, and only if, `status` is `ZX_OK`.
void AddArgs (::fuchsia_process::wire::LauncherAddArgsRequest * request, AddArgsCompleter::Sync & completer)
Adds the given arguments to the command-line for the process.
Calling this method multiple times concatenates the arguments.
void AddEnvirons (::fuchsia_process::wire::LauncherAddEnvironsRequest * request, AddEnvironsCompleter::Sync & completer)
Adds the given variables to the environment variables for the process.
Calling this method multiple times concatenates the variables.
void AddNames (::fuchsia_process::wire::LauncherAddNamesRequest * request, AddNamesCompleter::Sync & completer)
Adds the given names to the namespace for the process.
The paths in the namespace must be non-overlapping. See
<https
://fuchsia.dev/fuchsia-src/concepts/process/namespaces> for details.
Calling this method multiple times concatenates the names.
void AddHandles (::fuchsia_process::wire::LauncherAddHandlesRequest * request, AddHandlesCompleter::Sync & completer)
Adds the given handles to the startup handles for the process.
Calling this method multiple times concatenates the handles.
void SetOptions (::fuchsia_process::wire::LauncherSetOptionsRequest * request, SetOptionsCompleter::Sync & completer)
Sets the options with which the process is created.
Calling this method multiple times will overwrite the current options.
void WireServer ()
Defined at line 1077 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/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 1078 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/cpp/wire_messaging.h