monotooth : monotooth.Model.Connections Namespace

IConnection Interface

The superinterface that all connections must use.

public interface IConnection


Remarks

To be added.

Members

Properties

from
monotooth.Model.BluetoothAddress . Bluetooth address that describes the from-part of the connection.
SocketDescriptor [read-only]
int . An optional property that stores the current socket descriptor.
to
monotooth.Model.BluetoothAddress . Bluetooth address that describes the to-part of the connection.

Methods

connect ()
Connects the connections end-points together.
disconnect ()
Disconnects the connection.
isConnected () : bool
Tells wether the connection is open or not.
Read (System.Text.StringBuilder)
Reads bytes to a System.Text.StringBuilder from the connection.
Write (System.Text.StringBuilder)
Writes bytes stored to a System.Text.StringBuilder onto the connection.

Member Details

connect Method

public void connect ()

Connects the connections end-points together.

Remarks

To be added.

disconnect Method

public void disconnect ()

Disconnects the connection.

Remarks

To be added.

from Property

public monotooth.Model.BluetoothAddress from { set; get; }

Bluetooth address that describes the from-part of the connection.

Value

A BluetoothAddress with the from-part of the connection.

Remarks

To be added.

isConnected Method

public bool isConnected ()

Tells wether the connection is open or not.

Returns

A bool indicating the connection status

Remarks

To be added.

Read Method

public void Read (System.Text.StringBuilder bytes)

Reads bytes to a System.Text.StringBuilder from the connection.

Parameters

bytes
Bytes to be read from connection, wrapped in System.Text.StringBuilder.

Remarks

To be added.

SocketDescriptor Property

public int SocketDescriptor { get; }

An optional property that stores the current socket descriptor.

Value

The socket descriptor that is a part of the connection.

Remarks

To be added.

to Property

public monotooth.Model.BluetoothAddress to { set; get; }

Bluetooth address that describes the to-part of the connection.

Value

A BluetoothAddress with the to-part of the connection.

Remarks

To be added.

Write Method

public void Write (System.Text.StringBuilder bytes)

Writes bytes stored to a System.Text.StringBuilder onto the connection.

Parameters

bytes
The bytes to write to connection, wrapped in System.Text.StringBuilder.

Remarks

To be added.