Winsock error 10047

WSAEAFNOSUPPORT  -  Address family not supported by protocol family.

Basic (Microsoft) information for 10047 a.k.a. WSAEAFNOSUPPORT

An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.

Detailed (Berkeley) information for winsock 10047, described as "Address family not supported by protocol family."

Berkeley description: An address incompatible with the requested protocol was used. For example, you shouldn't necessarily expect to be able to use NS addresses with ARPA Internet protocols.

WinSock description: Same as Berkeley, and then some. The error occurs with the function, which takes the socket type (protocol) and address family as input parameters.

It also occurs with functions that take a socket handle and a sockaddr structure as input parameters. A socket already has a type (a protocol), and each sockaddr structure has an address family field to define its format. A function fails with WSAEAFNOSUPPORT if the address family referenced in sockaddr is not compatible with the referenced socket's protocol.

This error apparently also takes the place of WSAEPFNOSUPPORT (which means "protocol family not supported"), since that error is not listed for in the v1.1 WinSock specification.

[Home] [Full list of Winsock Error codes]
[Peer Monitor - network monitoring tool] [] [Hungarian language course]