---
title: protocolFamily
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/socketport/protocolfamily
---

# protocolFamily

The protocol family that the receiver uses for communication.

## Declaration

```swift
var protocolFamily: Int32 { get }
```

## Discussion

Discussion Possible values are defined in <sys/socket.h>, such as AF_LOCAL, AF_INET, and AF_INET6.

## See Also

### Getting Information

- [address](foundation/socketport/address.md)
- [protocol](foundation/socketport/protocol.md)
- [socket](foundation/socketport/socket.md)
- [socketType](foundation/socketport/sockettype.md)
