<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCEndpoint",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC11XPCEndpointV"
  },
  "title" : "XPCEndpoint"
}
-->

# XPCEndpoint

A connection in serialized form.

```
struct XPCEndpoint
```

## Overview

An `XPCEndpoint` can be passed around in an XPC message. The recipient of `XPCEndpoint` can
use [`init(endpoint:targetQueue:options:cancellationHandler:)`](/documentation/XPC/XPCSession/init(endpoint:targetQueue:options:cancellationHandler:))
to create as many distinct sessions as desired.

Unlike a connection, the endpoint is an inert object that does not have any runtime
activity associated with it.

## Topics

### Initializers

[`init(xpc_endpoint_t)`](/documentation/XPC/XPCEndpoint/init(_:))

Copy-initialize from a C endpoint object.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Decodable`](/documentation/Swift/Decodable)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

---

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)