template <>

class Server

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

Public Methods

void ConnectProducer (ConnectProducerRequest & request, ConnectProducerCompleter::Sync & completer)

Connects a Perfetto Producer to the Perfetto backend. Both sides

will communicate over `producer_socket` using Perfetto's internal

wire format "ProducerPort" (see

//third_party/perfetto/protos/perfetto/ipc/producer_port.proto).

`trace_buffer` either provides a buffer for communicating trace data

from the client, or an interface for receiving a buffer from the

server, depending on the client's needs.

The lifetime of `producer_socket` may outlive the connection lifetime

of ProducerConnector.

Multiple Producers may be connected simultaneously.

void Server ()

Defined at line 487 of file fidling/gen/sdk/fidl/fuchsia.tracing.perfetto/fuchsia.tracing.perfetto/cpp/fidl/fuchsia.tracing.perfetto/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 488 of file fidling/gen/sdk/fidl/fuchsia.tracing.perfetto/fuchsia.tracing.perfetto/cpp/fidl/fuchsia.tracing.perfetto/cpp/natural_messaging.h