class ChannelListenerRegistry

Defined at line 15698 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

Represents the ability to register and accept incoming connections on

connection oriented channels.

Public Methods

void ~ChannelListenerRegistry ()
void ListenL2cap (::fuchsia::bluetooth::le::ChannelListenerRegistryListenL2capRequest ChannelListenerRegistryListenL2capRequest, ListenL2capCallback callback)

Register a listener for incoming channels. The registry will assign a

PSM value that is unique for the local device, as well as open a

[`ChannelListener`] for accepting incoming channels. In the unlikely

event that all PSMs have been assigned, this call will fail with

`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by

the service or protocol, so it is the responsibility of the caller to

communicate the assigned PSM to any clients.