template <>
class WireServer
Defined at line 1490 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_bluetooth::Peer>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_bluetooth::Peer>|).
Public Methods
void AssignConnectionStatus (::fuchsia_hardware_bluetooth::wire::PeerAssignConnectionStatusRequest * 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 (::fuchsia_hardware_bluetooth::wire::PeerEmulateLeConnectionCompleteRequest * 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 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 (::fuchsia_bluetooth::wire::DeviceClass * 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 (::fuchsia_hardware_bluetooth::wire::PeerSetServiceDefinitionsRequest * 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 (::fuchsia_hardware_bluetooth::wire::PeerSetLeAdvertisementRequest * request, SetLeAdvertisementCompleter::Sync & completer)
void WireServer ()
Defined at line 1493 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/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 1494 of file fidling/gen/sdk/fidl/fuchsia.hardware.bluetooth/fuchsia.hardware.bluetooth/cpp/fidl/fuchsia.hardware.bluetooth/cpp/wire_messaging.h