template <>
class WireServer
Defined at line 2345 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_bluetooth_bredr::ScoConnection>|
and |::fidl::ServerEnd
<
::fuchsia_bluetooth_bredr::ScoConnection>|).
Public Methods
void Read (ReadCompleter::Sync & completer)
Read the next inbound SCO payload.
Hangs until new data is received.
Only one Read request may be pending at a time. Additional requests will result in protocol
closure.
void WireServer ()
Defined at line 2348 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/wire_messaging.h
void Write (::fuchsia_bluetooth_bredr::wire::ScoConnectionWriteRequest * request, WriteCompleter::Sync & completer)
Write `data` to the SCO connection.
If Write tries to send more data than `max_tx_data_size`, the protocol will be closed.
Only one Write request may be pending at a time. Additional requests will result in protocol
closure.
void RequestDisconnect (RequestDisconnectCompleter::Sync & completer)
Request disconnect of the current connection. The server is expected to close the
protocol once the underlying connection is disconnected. This can be used to order
events to happen after the connection is dropped. If this is not necessary, the
server will always disconnect the SCO when this protocol is closed by the client.
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 2349 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/wire_messaging.h