monotooth : monotooth.Model.Connections Namespace

ServiceConnection Interface

A superinterface for service-oriented connections.

public interface ServiceConnection : , IConnection


Remarks

This interface only has service registration as a feature.

To connect to a specific service, first inquire devices, then use InquireServices with an UUID to connect to this specific service

Members

Methods

RegisterService (string, string, string, int, uint)
Registers a service to the local SDP server. This server must be running before any action can be undertaken.
RegisterService (string, string, string, int, uint)
Registers a service to the local SDP server. This server must be running before any action can be undertaken.

Member Details

RegisterService Method

public void RegisterService (string name, string description, string vendor, int rfcomm_channel, uint uuid)

Registers a service to the local SDP server. This server must be running before any action can be undertaken.

Parameters

name
A name of the service.
description
Description of the service.
vendor
Possible vendor for the service.
rfcomm_channel
The rfcomm channel to listen for service connections.
uuid
The services UUID as unsigned integer.

Remarks

The UUID of the service is now implemented for simplicity as an unsigned integer.

RegisterService Method

public void RegisterService (string name, string description, string vendor, int rfcomm_channel, uint uuid)

Registers a service to the local SDP server. This server must be running before any action can be undertaken.

Parameters

name
A name of the service.
description
Description of the service.
vendor
Possible vendor for the service.
rfcomm_channel
The rfcomm channel to listen for service connections.
uuid
The services UUID as unsigned integer.

Remarks

The UUID of the service is now implemented for simplicity as an unsigned integer.