template <>
class Server
Defined at line 895 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/natural_messaging.h
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 Server ()
Defined at line 898 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/natural_messaging.h
void Write (WriteRequest & 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 ~Server ()
Defined at line 899 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/natural_messaging.h