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


class IOBluetoothRFCOMMChannel : IOBluetoothObject


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).


Instance Methods

func close() -> IOReturn

Close the channel.

func delegate() -> Any!

Returns the object delegate

func getID() -> BluetoothRFCOMMChannelID

Returns the object rfcomm channel ID.

func getDevice() -> IOBluetoothDevice!

Returns the Bluetooth Device that carries the rfcomm data.

func getMTU() -> BluetoothRFCOMMMTU

Returns the channel maximum transfer unit.

func getObjectID() -> IOBluetoothObjectID

Returns the IOBluetoothObjectID of the given IOBluetoothRFCOMMChannel.

func getRef() -> Unmanaged<IOBluetoothRFCOMMChannelRef>!

Returns an IOBluetoothRFCOMMChannelRef representation of the target IOBluetoothRFCOMMChannel object.

func isIncoming() -> Bool

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

func isOpen() -> Bool

Returns the state of the channel.

func isTransmissionPaused() -> Bool

Returns TRUE if flow control is off.

func setDelegate(Any!) -> IOReturn

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

func writeSync(UnsafeMutableRawPointer!, length: UInt16) -> IOReturn

Sends a block of data in the channel synchronously.

Type Methods

class func register(forChannelOpenNotifications: Any!, selector: Selector!) -> IOBluetoothUserNotification!

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

class func withObjectID(IOBluetoothObjectID) -> Self!

Returns the IObluetoothRFCOMMChannel with the given IOBluetoothObjectID.

class func withRFCOMMChannelRef(IOBluetoothRFCOMMChannelRef!) -> Self!

Method call to convert an IOBluetoothRFCOMMChannelRef into an IOBluetoothRFCOMMChannel *.


Inherits From