<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/OBEXSessionHasOpenOBEXConnection",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:@F@OBEXSessionHasOpenOBEXConnection"
  },
  "title" : "OBEXSessionHasOpenOBEXConnection"
}
-->

# OBEXSessionHasOpenOBEXConnection

Allows you to test the session for an open OBEX connection for a particular session.

```
OBEXError OBEXSessionHasOpenOBEXConnection(OBEXSessionRef inSessionRef, Boolean *outIsConnected);
```

## Parameters

`inSessionRef`

A valid session reference.

`outIsConnected`

A valid ptr to an OBEXSessionRef; will contain the newly created session if return value is kOBEXSuccess.

## Return Value

An error code value. 0 if successful.

## Discussion

This method will return true only if (a) you are transport-connected to another OBEX target and (b) an OBEX Connect command has been issued and received successfully.

*** DEPRECATED IN BLUETOOTH 2.2 (OS X v10.6) *** You should transition your code to Objective-C equivalents. *** This API may be removed any time in the future.

---

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)