template <>
class WireServer
Defined at line 925 of file fidling/gen/sdk/fidl/fuchsia.tracing.controller/fuchsia.tracing.controller/cpp/fidl/fuchsia.tracing.controller/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_tracing_controller::Session>|
and |::fidl::ServerEnd
<
::fuchsia_tracing_controller::Session>|).
Public Methods
void StartTracing (::fuchsia_tracing_controller::wire::StartOptions * request, StartTracingCompleter::Sync & completer)
Requests to start tracing with the specified `options`.
If tracing has already started then the request is ignored,
except to send back an error code.
The trace Session acknowledges the request when all
registered providers have been started or after
`TraceConfig.start_timeout_milliseconds` milliseconds.
One useful reason for the has-started acknowledgement is that the
trace program can start a program to trace knowing that all the
providers are started.
void StopTracing (::fuchsia_tracing_controller::wire::StopOptions * request, StopTracingCompleter::Sync & completer)
Requests to stop tracing.
If tracing has already stopped then this does nothing.
Returning a result lets callers know when it's ok to, for example,
start tracing again.
void WatchAlert (WatchAlertCompleter::Sync & completer)
Returns the next alert when it arrives.
Alerts received by the Session are queued until a WatchAlert
request is received. Alerts are sent to the caller in the order
they were received.
WatchAlert requests are also queued until an alert is received
and the requests are serviced in the order they were received.
void WireServer ()
Defined at line 928 of file fidling/gen/sdk/fidl/fuchsia.tracing.controller/fuchsia.tracing.controller/cpp/fidl/fuchsia.tracing.controller/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 929 of file fidling/gen/sdk/fidl/fuchsia.tracing.controller/fuchsia.tracing.controller/cpp/fidl/fuchsia.tracing.controller/cpp/wire_messaging.h