---
title: sendPort
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsconnection/sendport-c.property
---

# sendPort

The port that the connection sends outgoing network messages through.

## Declaration

```occ
@property (retain, readonly) NSPort * sendPort;
```

## Discussion

Discussion You can inspect this object for debugging purposes or use it to create another NSConnection object, but shouldn’t use it to send or receive messages explicitly. Don’t set the delegate of the send port—it already has a delegate established by the NSConnection object.

## See Also

### Related Documentation

- [initWithReceivePort:sendPort:](foundation/nsconnection/initwithreceiveport:sendport:.md)

### Getting Ports

- [receivePort](foundation/nsconnection/receiveport-c.property.md)
- [dispatchWithComponents:](foundation/nsconnection/dispatchwithcomponents:.md)
