---
title: sendPort
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/portmessage/sendport
---

# sendPort

For an outgoing message, returns the port the receiver will send itself through. For an incoming message, returns the port replies to the receiver should be sent through.

## Declaration

```swift
var sendPort: Port? { get }
```

## Return Value

Return Value For an outgoing message, the port the receiver will send itself through when it receives a send(before:) message. For an incoming message, the port replies to the receiver should be sent through.

## See Also

### Getting the Ports

- [receivePort](foundation/portmessage/receiveport.md)
