| Previous | Next |
| WSAEOPNOTSUPP | WSAEAFNOSUPPORT |
WSAEPFNOSUPPORT
WSAEPFNOSUPPORT concerns the protocol family selected for a socket operation. It is close to WSAEAFNOSUPPORT, but the distinction is historical: Microsoft documents the two as slightly different while also noting that they are interchangeable in most Winsock cases.
Where the mismatch occurs
A socket is created with a family, type, and optional protocol. Internet applications normally use AF_INET or AF_INET6. A provider must exist that can implement the requested combination. A family constant copied from another platform, a provider catalog problem, or a family/protocol pairing that the selected provider does not implement can all make the request impossible before any packet is sent.
What to compare
- The
af,type, andprotocolarguments passed tosocketorWSASocket. - The family stored in each
sockaddrlater passed to the socket. - The protocol entries returned by
WSAEnumProtocolswhen provider availability is in doubt.
This is not a remote-host refusal. The failure is about local protocol-family support or selection.
Microsoft: Winsock error codes · Microsoft: socket · IETF: Basic IPv6 Socket Interface Extensions
Looking for a different code? Search another status or error code.