<!--
{
  "documentType" : "article",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/obexbluetooth-h",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "OBEXBluetooth.h"
}
-->

# OBEXBluetooth.h

Object Exchange over Bluetooth.

## Discussion

See the Overview section above for header-level documentation.

### Overview

#### Included Headers

- <IOBluetooth/OBEX.h>
- <IOBluetooth/IOBluetoothUserLib.h>

## Topics

### Miscellaneous

[`OBEXError IOBluetoothOBEXSessionCreateWithIncomingIOBluetoothRFCOMMChannel(IOBluetoothRFCOMMChannelRef inRFCOMMChannelRef, OBEXSessionEventCallback inCallback, void *inUserRefCon, OBEXSessionRef*outSessionRef);`](/documentation/IOBluetooth/IOBluetoothOBEXSessionCreateWithIncomingIOBluetoothRFCOMMChannel)

Create an OBEX session with an IOBluetoothRFCOMMchannel. This implies you are creating a OBEX SERVER session that will dole out info to remote Bluetooth clients.

[`OBEXError IOBluetoothOBEXSessionCreateWithIOBluetoothDeviceRefAndChannelNumber(IOBluetoothDeviceRef inDeviceRef, BluetoothRFCOMMChannelID inChannelID, OBEXSessionRef*outSessionRef);`](/documentation/IOBluetooth/IOBluetoothOBEXSessionCreateWithIOBluetoothDeviceRefAndChannelNumber)

Create an OBEX session with a device ref and an RFCOMM channel ID. This allows you to bypass the browser if you already know the SDP information.

[`OBEXError IOBluetoothOBEXSessionCreateWithIOBluetoothSDPServiceRecordRef(IOBluetoothSDPServiceRecordRef inSDPServiceRef, OBEXSessionRef*outSessionRef);`](/documentation/IOBluetooth/IOBluetoothOBEXSessionCreateWithIOBluetoothSDPServiceRecordRef)

Create an OBEX session with a service ref, usually obtained from the device browser.

[`OBEXError IOBluetoothOBEXSessionOpenTransportConnection(OBEXSessionRef inSessionRef, IOBluetoothOBEXSessionOpenConnectionCallback inCallback, void *inUserRefCon);`](/documentation/IOBluetooth/IOBluetoothOBEXSessionOpenTransportConnection)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)