---
title: protocolNotAvailable
framework: system
role: symbol
role_heading: Type Property
path: system/errno/protocolnotavailable
---

# protocolNotAvailable

Protocol not available.

## Declaration

```swift
static var protocolNotAvailable: Errno { get }
```

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A bad option or level was specified in a getsockopt(2) or setsockopt(2) call. The corresponding C error is ENOPROTOOPT.

## See Also

### Network Protocol Errors

- [protocolError](system/errno/protocolerror.md)
- [protocolFamilyNotSupported](system/errno/protocolfamilynotsupported.md)
- [protocolNotSupported](system/errno/protocolnotsupported.md)
- [protocolWrongTypeForSocket](system/errno/protocolwrongtypeforsocket.md)
