---
title: MIDIThruConnectionEndpoint
framework: coremidi
role: symbol
role_heading: Structure
path: coremidi/midithruconnectionendpoint
---

# MIDIThruConnectionEndpoint

A source or destination in a MIDI thru connection.

## Declaration

```swift
struct MIDIThruConnectionEndpoint
```

## Overview

Overview Set the endpoint’s uniqueID to 0 if the endpoint exists and you’re passing its endpointRef. When retrieving a connection from Core MIDI, its endpointRef may be NULL if it doesn’t exist, but the uniqueID is always non-zero.

## Topics

### Configuring an Endpoint

- [uniqueID](coremidi/midithruconnectionendpoint/uniqueid.md)
- [endpointRef](coremidi/midithruconnectionendpoint/endpointref.md)

### Initializers

- [init()](coremidi/midithruconnectionendpoint/init().md)
- [init(endpointRef:uniqueID:)](coremidi/midithruconnectionendpoint/init(endpointref:uniqueid:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Managing Connections

- [MIDIThruConnectionCreate(_:_:_:)](coremidi/midithruconnectioncreate(_:_:_:).md)
- [MIDIThruConnectionDispose(_:)](coremidi/midithruconnectiondispose(_:).md)
- [MIDIThruConnectionRef](coremidi/midithruconnectionref.md)
- [Endpoint Configuration](coremidi/endpoint-configuration.md)
