template <>
class WireServer
Defined at line 5368 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_media::StreamSink>|
and |::fidl::ServerEnd
<
::fuchsia_media::StreamSink>|).
Public Methods
void SendPacket (::fuchsia_media::wire::StreamSinkSendPacketRequest * request, SendPacketCompleter::Sync & completer)
Sends a packet to the service. The response is sent when the service is
done with the associated payload memory.
`packet` must be valid for the current buffer set, otherwise the service
will close the connection.
void SendPacketNoReply (::fuchsia_media::wire::StreamSinkSendPacketNoReplyRequest * request, SendPacketNoReplyCompleter::Sync & completer)
Sends a packet to the service. This interface doesn't define how the
client knows when the sink is done with the associated payload memory.
The inheriting interface must define that.
`packet` must be valid for the current buffer set, otherwise the service
will close the connection.
void EndOfStream (EndOfStreamCompleter::Sync & completer)
Indicates the stream has ended. The precise semantics of this method are
determined by the inheriting interface.
void DiscardAllPackets (DiscardAllPacketsCompleter::Sync & completer)
Discards packets previously sent via `SendPacket` or `SendPacketNoReply`
and not yet released. The response is sent after all packets have been
released.
void DiscardAllPacketsNoReply (DiscardAllPacketsNoReplyCompleter::Sync & completer)
Discards packets previously sent via `SendPacket` or `SendPacketNoReply`
and not yet released.
void WireServer ()
Defined at line 5371 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/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 5372 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h