template <>

class WireServer

Defined at line 4755 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_media_sessions2::SessionsWatcher>|

and |::fidl::ServerEnd

<

::fuchsia_media_sessions2::SessionsWatcher>|).

Public Methods

void SessionUpdated (::fuchsia_media_sessions2::wire::SessionsWatcherSessionUpdatedRequest * request, SessionUpdatedCompleter::Sync & completer)

Called by the registry service when a session is updated. On first connection,

this will be called as many times as needed to communicate the state of the

world.

`SessionsWatcher` must reply to acknowledge receipt of the session info delta.

Delinquent watchers who do not reply will eventually be disconnected.

void SessionRemoved (::fuchsia_media_sessions2::wire::SessionsWatcherSessionRemovedRequest * request, SessionRemovedCompleter::Sync & completer)

Called by the registry service when a session is removed from the registered

collection.

`SessionsWatcher` must reply to acknlowledge receipt of the session removal.

Delinquent watchers who do not reply will eventually be disconnected.

void WireServer ()

Defined at line 4758 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/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 4759 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_messaging.h