template <>

class WireServer

Defined at line 227 of file fidling/gen/sdk/fidl/fuchsia.debugdata/fuchsia.debugdata/cpp/fidl/fuchsia.debugdata/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_debugdata::Publisher>|

and |::fidl::ServerEnd

<

::fuchsia_debugdata::Publisher>|).

Public Methods

void Publish (::fuchsia_debugdata::wire::PublisherPublishRequest * request, PublishCompleter::Sync & completer)

The program runtime sends a string naming a `data_sink` and transfers

the handle to a VMO containing the `data` it wants published

there. The `data_sink` string identifies a type of data, and the

VMO's object name can specifically identify the data set in this VMO.

The ZX_PROP_VMO_CONTENT_SIZE property should be set on the VMO to

indicate the precise size of the data in case that is not whole pages;

however, leaving it unset (i.e. 0) is acceptable when the whole-page

size of the VMO is the intended size of dump. Code instrumentation

runtimes use this to deliver large binary trace results. In such cases,

the client can resize the VMO and should use the `vmo_token` handle to

signal when the VMO is ready for processing by the recipient. The

receiver will not process the VMO until the peer of `vmo_token` handle

is closed. Therefore, the client should retain the peer handle until

it has completed all writes to the VMO.

void WireServer ()

Defined at line 230 of file fidling/gen/sdk/fidl/fuchsia.debugdata/fuchsia.debugdata/cpp/fidl/fuchsia.debugdata/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 231 of file fidling/gen/sdk/fidl/fuchsia.debugdata/fuchsia.debugdata/cpp/fidl/fuchsia.debugdata/cpp/wire_messaging.h