Class

IOBluetoothOBEXSession

An OBEX Session with a Bluetooth RFCOMM channel as the transport.

Declaration

@interface IOBluetoothOBEXSession : OBEXSession

Overview

Topics

Initializers

- initWithSDPServiceRecord:

Initializes a Bluetooth-based OBEX Session using an SDP service record.

- initWithDevice:channelID:

Initializes a Bluetooth-based OBEX Session using a Bluetooth device.

- initWithIncomingRFCOMMChannel:eventSelector:selectorTarget:refCon:

Initializes a Bluetooth-based OBEX Session using an incoming RFCOMM channel.

Instance Methods

- closeTransportConnection

An OBEXSession override. When this is called by the session baseclass, we will close the transport connection if it is opened. In our case, it will be the RFCOMM channel that needs closing.

- getDevice

Get the Bluetooth Device being used by the session object.

- getRFCOMMChannel

Get the Bluetooth RFCOMM channel being used by the session object.

- hasOpenTransportConnection

An OBEXSession override. When this is called by the session baseclass, we will return whether or not we have a transport connection established to another OBEX server/client. In our case we will tell whether or not the RFCOMM channel to a remote device is still open.

- isSessionTargetAMac

Tells whether the target device is a Mac by checking its service record.

- openTransportConnection:selectorTarget:refCon:

An OBEXSession override. When this is called by the session baseclass, we will attempt to open the transport connection. In our case, this would be an RFCOMM channel to another Bluetooth device.

- restartTransmission

If the transmission was stopped due to the lack of buffers this call restarts it.

- sendBufferTroughChannel

Sends the next block of data through the rfcomm channel.

- sendDataToTransport:dataLength:

An OBEXSession override. When this is called by the session baseclass, we will send the data we are given over our transport connection. If none is open, we could try to open it, or just return an error. In our case, it will be sent over the RFCOMM channel.

- setOBEXSessionOpenConnectionCallback:refCon:

For C API support. Allows you to set the callback to be invoked when the OBEX connection is actually opened.

- setOpenTransportConnectionAsyncSelector:target:refCon:

Allows you to set the selector to be used when a transport connection is opened, or fails to open.

Type Methods

+ withDevice:channelID:

Creates a Bluetooth-based OBEX Session using a Bluetooth device and a Bluetooth RFCOMM channel ID.

+ withIncomingRFCOMMChannel:eventSelector:selectorTarget:refCon:

Creates a Bluetooth-based OBEX Session using an incoming RFCOMM channel.

+ withSDPServiceRecord:

Creates a Bluetooth-based OBEX Session using an SDP service record, typically obtained from a device/service browser window controller.

Relationships

Inherits From