---
title: protocolWrongTypeForSocket
framework: system
role: symbol
role_heading: Type Property
path: system/errno/protocolwrongtypeforsocket
---

# protocolWrongTypeForSocket

Protocol wrong for socket type.

## Declaration

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

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A protocol was specified that doesn’t support the semantics of the socket type requested. For example, you can’t use the ARPA Internet UDP protocol with type SOCK_STREAM. The corresponding C error is EPROTOTYPE.

## See Also

### Network Protocol Errors

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