---
title: XPCPeerHandler
framework: xpc
role: symbol
role_heading: Protocol
path: xpc/xpcpeerhandler
---

# XPCPeerHandler

A type that handles incoming messages from a client and session cancellation.

## Declaration

```swift
@preconcurrency protocol XPCPeerHandler : Sendable
```

## Topics

### Receiving client messages

- [handleIncomingRequest(_:)](xpc/xpcpeerhandler/handleincomingrequest(_:).md)
- [Input](xpc/xpcpeerhandler/input.md)
- [Output](xpc/xpcpeerhandler/output.md)

### Responding to session cancellation

- [handleCancellation(error:)](xpc/xpcpeerhandler/handlecancellation(error:).md)

## Relationships

### Inherits From

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
