template <>

class Server

Defined at line 280 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/cpp/natural_messaging.h

Public Methods

void Launch (LaunchRequest & 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 (CreateWithoutStartingRequest & 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 (AddArgsRequest & 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 (AddEnvironsRequest & 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 (AddNamesRequest & 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 (AddHandlesRequest & request, AddHandlesCompleter::Sync & completer)

Adds the given handles to the startup handles for the process.

Calling this method multiple times concatenates the handles.

void Server ()

Defined at line 283 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/cpp/natural_messaging.h

void SetOptions (SetOptionsRequest & request, SetOptionsCompleter::Sync & completer)

Sets the options with which the process is created.

Calling this method multiple times will overwrite the current options.

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 284 of file fidling/gen/sdk/fidl/fuchsia.process/fuchsia.process/cpp/fidl/fuchsia.process/cpp/natural_messaging.h