template <>
class WireServer
Defined at line 1466 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_audio::StreamSink>|
and |::fidl::ServerEnd
<
::fuchsia_audio::StreamSink>|).
Public Methods
void PutPacket (::fuchsia_audio::wire::StreamSinkPutPacketRequest * request, PutPacketCompleter::Sync & completer)
Puts a packet to the sink.
void StartSegment (::fuchsia_audio::wire::StreamSinkStartSegmentRequest * request, StartSegmentCompleter::Sync & completer)
Starts a new segment. Packets following this request and preceding the next such request
are assigned to the segment.
void End (EndCompleter::Sync & completer)
Indicates that the end of the stream has been reached. Consumers such as audio renderers
signal their clients when the last packet before end-of-stream has been rendered, so the
client knows when to, for example, change the UI state of a player to let the user know the
content is done playing. This method is logically scoped to the current segment. A
`SetSegment` request and (typically) more packets may follow this request.
void WillClose (::fuchsia_audio::wire::StreamSinkWillCloseRequest * request, WillCloseCompleter::Sync & completer)
Sent immediately before the producer closes to indicate why the producer is closing the
connection. After sending this request, the producer must refrain from sending any more
messages and close the connection promptly.
void WireServer ()
Defined at line 1469 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/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 1470 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/cpp/wire_messaging.h