ServiceRecordHelper Class

Some useful methods for working with a SDP ServiceRecord including creating and accessing the ProtocolDescriptorList for an RFCOMM service.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static class ServiceRecordHelper
Inheritance
Object    ServiceRecordHelper

Methods

CreateGoepProtocolDescriptorList Creates the data element for the ProtocolDescriptorList attribute in an GOEP (i.e. OBEX) service
CreateL2CapProtocolDescriptorList Creates the data element for the ProtocolDescriptorList attribute in an L2CAP service
CreateL2CapProtocolDescriptorListWithUpperLayers Creates the data element for the ProtocolDescriptorList attribute in an L2CAP service, with upper layer entries.
CreateRfcommProtocolDescriptorList Creates the data element for the ProtocolDescriptorList attribute in an RFCOMM service
GetL2CapChannelElement Reads the L2CAP Channel Number element from the service record.
GetL2CapChannelNumber Reads the L2CAP Channel Number value from the service record, or returns -1 if the element is not present.
GetRfcommChannelElement Reads the RFCOMM Channel Number element from the service record.
GetRfcommChannelNumber Reads the RFCOMM Channel Number value from the service record, or returns -1 if the element is not present.
SetL2CapPsmNumber Sets the RFCOMM Channel Number value in the service record.
SetRfcommChannelNumber Sets the RFCOMM Channel Number value in the service record.

See Also