template <>

class Server

Defined at line 538 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/cpp/natural_messaging.h

Public Methods

void PutPacket (PutPacketRequest & request, PutPacketCompleter::Sync & completer)

Puts a packet to the sink.

void Server ()

Defined at line 541 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/cpp/natural_messaging.h

void StartSegment (StartSegmentRequest & 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 (WillCloseRequest & 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.

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 ~Server ()

Defined at line 542 of file fidling/gen/sdk/fidl/fuchsia.audio/fuchsia.audio/cpp/fidl/fuchsia.audio/cpp/natural_messaging.h