Some useful methods for working with a SDP ServiceRecord
including creating and accessing the ProtocolDescriptorList
for an RFCOMM service.
| C# | Visual Basic |
public static class ServiceRecordHelper
Public NotInheritable Class ServiceRecordHelper
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| CreateGoepProtocolDescriptorList()()() |
Creates the data element for the
ProtocolDescriptorList
attribute in an GOEP (i.e. OBEX) service
| |
| CreateRfcommProtocolDescriptorList()()() |
Creates the data element for the
ProtocolDescriptorList
attribute in an RFCOMM service
| |
| GetRfcommChannelElement(ServiceRecord) |
Reads the RFCOMM Channel Number element from the service record.
| |
| GetRfcommChannelNumber(ServiceRecord) |
Reads the RFCOMM Channel Number value from the service record,
or returns -1 if the element is not present.
| |
| SetRfcommChannelNumber(ServiceRecord, Byte) |
Sets the RFCOMM Channel Number value in the service record.
|
| Object | |
| ServiceRecordHelper | |