template <>
class Server
Defined at line 249 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/natural_messaging.h
Public Methods
void Send (SendRequest & request, SendCompleter::Sync & completer)
Send multiple packets of data over the channel. Only one `Send`
may be pending at a time.
void Receive (ReceiveCompleter::Sync & completer)
Hanging get that waits for inbound packets. Only one `Receive`
may be pending at a time.
void Server ()
Defined at line 252 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/natural_messaging.h
void WatchChannelParameters (WatchChannelParametersCompleter::Sync & completer)
For RFCOMM channels, this will not return and calls will hang
indefinitely.
For BR/EDR L2CAP connection-oriented channels this will currently not
return and calls will hang indefinitely. The initial channel parameters
are provided in [`fuchsia.bluetooth.bredr/Channel`].
For LE L2CAP connection-oriented channels, the first call will
immediately return the parameters of the remote side of the channel.
Subsequent calls will hang until the [`ChannelParameters`] change, at
which point it will return the new parameters, including those that have
not changed.
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 253 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/natural_messaging.h