template <>

class WireServer

Defined at line 1233 of file fidling/gen/src/connectivity/network/testing/netemul/sync-manager/fidl/sync/cpp/fidl/fuchsia.netemul.sync/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_netemul_sync::Bus>|

and |::fidl::ServerEnd

<

::fuchsia_netemul_sync::Bus>|).

Public Methods

void Publish (::fuchsia_netemul_sync::wire::BusPublishRequest * request, PublishCompleter::Sync & completer)

Publishes event on the bus.

void EnsurePublish (::fuchsia_netemul_sync::wire::BusEnsurePublishRequest * request, EnsurePublishCompleter::Sync & completer)

Publishes data on bus and only returns when data has been dispatched.

Use this if you need guarantees that the data was broadcast before continuing.

Note that this ensures that the data will be *published* to all listening clients,

but it cannot guarantee that all clients will have observed the event before it returns.

void GetClients (GetClientsCompleter::Sync & completer)

Get list of named clients.

void WaitForClients (::fuchsia_netemul_sync::wire::BusWaitForClientsRequest * request, WaitForClientsCompleter::Sync & completer)

Waits for up to `timeout` (nsec) for all the clients in `clients`.

Returns true if all clients are present on the bus before timeout expired.

If `result` is false, `absent` will contain the entries in `clients` that still weren't

present on the bus when the timout expired.

Use `timeout`

<

= 0 for indefinite wait.

void WaitForEvent (::fuchsia_netemul_sync::wire::BusWaitForEventRequest * request, WaitForEventCompleter::Sync & completer)

Waits for up to `timeout` (nsec) for an event that matches `data`.

Event equality is performed by comparing *all* set fields in `data`.

Returns true if event was received before timeout expired.

Use `timeout`

<

= 0 for indefinite wait.

void WireServer ()

Defined at line 1236 of file fidling/gen/src/connectivity/network/testing/netemul/sync-manager/fidl/sync/cpp/fidl/fuchsia.netemul.sync/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 1237 of file fidling/gen/src/connectivity/network/testing/netemul/sync-manager/fidl/sync/cpp/fidl/fuchsia.netemul.sync/cpp/wire_messaging.h