class Advertise

Defined at line 441 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/markers.h

Register a set of services.

These services will be discoverable via Service Discovery Protocol server.

All services advertising the same channel must be added at once - if services are already

registered on any channel advertised, registration will fail, the receiver will be closed

with ZX_ERR_ALREADY_BOUND and an error will be returned.

The ConnectionReceiver will get calls for connections to the channels included in the

`protocol_descriptor` or `alternative_protocol_descriptors` in the services advertised.

The receiver will be closed if there are any errors advertising.

The `ConnectionReceiver::OnRevoke` event can be used to synchronize revoking the

advertisement, if necessary. Closing the `ConnectionReceiver` protocol will also stop

advertising these services.

If the advertisement cannot be made for any reason, an error of `INVALID_ARGUMENTS`

will be returned and the receiver will be closed with a suitable epitaph.

Returns the set of services that are registered via the Service Discovery Protocol

server. The returned services may differ from the input `services` if any L2CAP protocol

descriptors request `PSM_DYNAMIC`. In this case, the `Profile` server shall assign a valid

PSM and include this value in the returned services.

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal