Bluetooth Framework
ContentsIndexHome
PreviousUpNext
CwclRfCommServer::DoGetSdpAttributes Method

Fires the GetSdpAttributes event.

Syntax
C++
virtual void DoGetSdpAttributes(wclBluetoothSdpProtocols& Protocols, wclBluetoothSdpProfiles& Profiles, wclBluetoothSdpFormats& Formats, unsigned long& Cod);
Parameters 
Description 
wclBluetoothSdpProtocols& Protocols 
The additional protocol descriptors array that should be added to SDP record.  
wclBluetoothSdpProfiles& Profiles 
The profile list that should be added to SDP record.  
wclBluetoothSdpFormats& Formats 
Other attributes that should be added to SDP record.  
unsigned long& Cod 
Class of device (COD) information. A 32-bit parameter of COD_SERVICE_* class of device bits associated with this SDP record. The system combines these bits with COD bits from other service records and system characteristics. The resulting class of device for the local radio is advertised when the radio is found during device inquiry. When the last SDP record associated with a particular service bit is deleted, that service bit is no longer reported in responses to future device inquiries.
The format and possible values for the COD field are defined in the Bluetooth Assigned Numbers 1.1 portion of the Bluetooth specification, Section 1.2. (This resource may not be available in some languages and countries.)
 

The HAL Radio implementation calls this method when needs to add custom attributes into the SDP record.  

BlueSoleil driver does not support custom SDP records and this method does not work with BlueSoleil Bluetooth driver.  

A derived class must always call the inherited method.  

 

Copyright (c) 2006-2019. All rights reserved.