<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/Errno/protocolWrongTypeForSocket",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System5ErrnoV26protocolWrongTypeForSocketACvpZ"
  },
  "title" : "protocolWrongTypeForSocket"
}
-->

# protocolWrongTypeForSocket

Protocol wrong for socket type.

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

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)