---
title: socketFamily
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nefiltersocketflow/socketfamily
---

# socketFamily

The protocol family of the socket.

## Declaration

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

## Discussion

Discussion Examples of protocol families include symbols like PF_INET and PF_INET6.

## See Also

### Getting socket flow properties

- [remoteEndpoint](networkextension/nefiltersocketflow/remoteendpoint.md)
- [remoteHostname](networkextension/nefiltersocketflow/remotehostname.md)
- [NEFilterFlow](networkextension/nefilterflow.md)
- [localEndpoint](networkextension/nefiltersocketflow/localendpoint.md)
- [socketType](networkextension/nefiltersocketflow/sockettype.md)
- [socketProtocol](networkextension/nefiltersocketflow/socketprotocol.md)
