template <>

class WireServer

Defined at line 386 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_diagnostics::LogFlusher>|

and |::fidl::ServerEnd

<

::fuchsia_diagnostics::LogFlusher>|).

Public Methods

void WaitUntilFlushed (WaitUntilFlushedCompleter::Sync & completer)

Flushes all pending logs through the logging pipeline

to the serial port. Logs written to sockets prior to

the call to Flush are guaranteed to be fully written

to serial when this returns. Logs written to sockets

after this call has been received by Archivist are

not guaranteed to be flushed.

Additionally, sockets must actually be connected to the Archivist

before this call is made. If a socket hasn't been

received by Archivist yet, those logs may be dropped.

To ensure that logs are properly flushed, make sure

to wait for the initial interest when logging.

Important note: This may be called from the host,

but host sockets will NOT be flushed by this method.

If you write data from the host (not on the device,

there is no guarantee that such logs will ever be printed).

void WireServer ()

Defined at line 389 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/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 390 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_messaging.h