template <>
class Server
Defined at line 378 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/cpp/natural_messaging.h
Public Methods
void AssignConnectionStatus (AssignConnectionStatusRequest & request, AssignConnectionStatusCompleter::Sync & completer)
Assign a HCI `status` for the controller to generate in response to connection requests.
Applies to all successive HCI_Create_Connection and HCI_LE_Create_Connection commands. The
procedure is acknowledged with an empty response.
void EmulateLeConnectionComplete (EmulateLeConnectionCompleteRequest & request, EmulateLeConnectionCompleteCompleter::Sync & completer)
Emulates a LE connection event. Does nothing if the peer is already connected. The
`role` parameter determines the link layer connection role.
void EmulateDisconnectionComplete (EmulateDisconnectionCompleteCompleter::Sync & completer)
Emulate disconnection. Does nothing if the peer is not connected.
void Server ()
Defined at line 381 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/cpp/natural_messaging.h
void WatchConnectionStates (WatchConnectionStatesCompleter::Sync & completer)
Returns a vector of the least to most recent controller connection states.
This method returns when there has been a state change since the last invocation of this
method by this client.
Multiple calls to this method can be outstanding at a given time. All calls will resolve in
a response as soon as there is a change to the scan state.
void SetDeviceClass (SetDeviceClassRequest & request, SetDeviceClassCompleter::Sync & completer)
Sets the device class reported in the inquiry response for this peer during device
discovery. If the peer is not BR/EDR, the server will close with the `ZX_ERR_NOT_SUPPORTED`
epitaph.
void SetServiceDefinitions (SetServiceDefinitionsRequest & request, SetServiceDefinitionsCompleter::Sync & completer)
Sets the peer's services that will be discoverable via Service Discovery Protocol. If the
peer is not BR/EDR, the server will close with the `ZX_ERR_NOT_SUPPORTED` epitaph.
void SetLeAdvertisement (SetLeAdvertisementRequest & request, SetLeAdvertisementCompleter::Sync & completer)
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 382 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/cpp/natural_messaging.h