<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_dictionary_get_remote_connection(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@F@xpc_dictionary_get_remote_connection"
  },
  "title" : "xpc_dictionary_get_remote_connection(_:)"
}
-->

# xpc_dictionary_get_remote_connection(_:)

Returns the connection that receives the dictionary.

```
func xpc_dictionary_get_remote_connection(_ xdict: xpc_object_t) -> xpc_connection_t?
```

## Parameters

`xdict`

The dictionary object which is to be examined.

## Return Value

If the dictionary was received by a connection event handler or a dictionary created through [`xpc_dictionary_create_reply(_:)`](/documentation/XPC/xpc_dictionary_create_reply(_:)), a connection object over which a reply message can be sent is returned. For any other dictionary, NULL is returned.

## Discussion

---

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)