template <>

class Server

Defined at line 265 of file fidling/gen/sdk/fidl/fuchsia.tracing.provider/fuchsia.tracing.provider/cpp/fidl/fuchsia.tracing.provider/cpp/natural_messaging.h

Public Methods

void RegisterProvider (RegisterProviderRequest & request, RegisterProviderCompleter::Sync & completer)

Registers the trace provider.

Note: Registration is asynchronous, it's only at some point after this

returns that the provider is actually registered.

To unregister, simply close the Provider pipe.

`pid` is the process id of the provider, `name` is the name of the

provider. Both of these are used in logging and diagnostic messages.

# Deprecation

Use "RegisterV2" instead to use the FIDL-based coordination protocol.

void RegisterProviderSynchronously (RegisterProviderSynchronouslyRequest & request, RegisterProviderSynchronouslyCompleter::Sync & completer)

Registers the trace provider synchronously. The call doesn't return

until the provider is registered.

On return `s` is `ZX_OK` if registration was successful.

`started` is true if tracing has already started, which is a hint to

the provider to wait for the Start() message before continuing if it

wishes to not drop trace records before Start() is received.

To unregister, simply close the Provider pipe.

`pid` is the process id of the provider, `name` is the name of the

provider. Both of these are used in logging and diagnostic messages.

# Deprecation

Use "RegisterV2Synchronously" instead to use the FIDL-based coordination protocol.

void RegisterV2 (RegisterV2Request & request, RegisterV2Completer::Sync & completer)

Registers the trace provider using the V2 protocol.

Note: Registration is asynchronous, it's only at some point after this

returns that the provider is actually registered.

To unregister, close the `provider` connection.

void RegisterV2Synchronously (RegisterV2SynchronouslyRequest & request, RegisterV2SynchronouslyCompleter::Sync & completer)

Registers the trace provider synchronously using the V2 protocol.

The call doesn't return until the provider is registered. Most callers

should use RegisterV2 unless they need to synchronize with they tracing

system to ensure that specific events are captured.

To unregister, close the `provider` connection.

void Server ()

Defined at line 268 of file fidling/gen/sdk/fidl/fuchsia.tracing.provider/fuchsia.tracing.provider/cpp/fidl/fuchsia.tracing.provider/cpp/natural_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 ~Server ()

Defined at line 269 of file fidling/gen/sdk/fidl/fuchsia.tracing.provider/fuchsia.tracing.provider/cpp/fidl/fuchsia.tracing.provider/cpp/natural_messaging.h