Class

IOBluetoothRFCOMMChannel

An instance of this class represents an RFCOMM channel as defined by the Bluetooth SDP spec..

Declaration

@interface IOBluetoothRFCOMMChannel : IOBluetoothObject

Overview

An RFCOMM channel object can be obtained by opening an RFCOMM channel in a device, or by requesting a notification when a channel is created (this is commonly used to provide services).

Topics

Instance Methods

- closeChannel

Close the channel.

- delegate

Returns the object delegate

- getChannelID

Returns the object rfcomm channel ID.

- getDevice

Returns the Bluetooth Device that carries the rfcomm data.

- getMTU

Returns the channel maximum transfer unit.

- getObjectID

Returns the IOBluetoothObjectID of the given IOBluetoothRFCOMMChannel.

- getRFCOMMChannelRef

Returns an IOBluetoothRFCOMMChannelRef representation of the target IOBluetoothRFCOMMChannel object.

- isIncoming

Returns the direction of the channel. An incoming channel is one that was opened by the remote device.

- isOpen

Returns the state of the channel.

- isTransmissionPaused

Returns TRUE if flow control is off.

- registerForChannelCloseNotification:selector:

Allows a client to register for a channel close notification.

- sendRemoteLineStatus:

Sends an error to the remote side.

- setDelegate:

Allows an object to register itself as a client of the RFCOMM channel.

- setSerialParameters:dataBits:parity:stopBits:

Changes the parameters of the serial connection.

- writeAsync:length:refcon:

Sends a block of data in the channel asynchronously.

- writeSync:length:

Sends a block of data in the channel synchronously.

Type Methods

+ registerForChannelOpenNotifications:selector:

Allows a client to register for RFCOMM channel open notifications for any RFCOMM channel.

+ registerForChannelOpenNotifications:selector:withChannelID:direction:

Allows a client to register for RFCOMM channel open notifications for certain types of RFCOMM channels.

+ withObjectID:

Returns the IObluetoothRFCOMMChannel with the given IOBluetoothObjectID.

+ withRFCOMMChannelRef:

Method call to convert an IOBluetoothRFCOMMChannelRef into an IOBluetoothRFCOMMChannel *.

Relationships

Inherits From

Conforms To