Error Message:

WINSOCK Error: Protocol is wrong type for socket.

Explanation:

A protocol was specified that does not support the semantics of the socket type requested. For example, you cannot use the ARPA Internet UDP protocol with the SOCK_STREAM socket type. This error occurs if you specifically reference a protocol that is not part of the Internet address family you are also referencing. The only function that takes these two explicit parameters is Deps socket().An incompatible protocol has been selected for the socket. The device driver for the protocol stack might not be compatible with Wsock32.dll.

User Action:

Developer suggestions: Since each datagram and datastream socket type in the Internet address family has only one corresponding protocol, you should simply leave the value of the protocol input parameter as socket(). Alternatively, you could call getprotobyname() or WSAAsyncGetProtoByName() to get the appropriate protocol value from the network system. User suggestion: If you are using a third-party Transmission Control Protocol/Internet Protocol (TCP/IP), verify that it is compatible with Wsock32.dll. If you are using Microsoft TCP/IP, remove and reinstall TCP/IP.