---
title: XPCEndpoint
framework: xpc
role: symbol
role_heading: Structure
path: xpc/xpcendpoint
---

# XPCEndpoint

A connection in serialized form.

## Declaration

```swift
struct XPCEndpoint
```

## Overview

Overview An XPCEndpoint can be passed around in an XPC message. The recipient of XPCEndpoint can use 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/xpcendpoint/init(_:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
