Winsock Error Codes - Brought to you by Winsock-Error.com

10045 "Operation not supported."

WSAEOPNOTSUPP (Winsock error number: 10045)

Microsoft say this about Winsock error 10045 - WSAEOPNOTSUPP:

The attempted operation is not supported for the type of object referenced. Usually this occurs when a socket descriptor to a socket that cannot support this operation is trying to accept a connection on a datagram socket.

Full details of Winsock TCP error 10045 - WSAEOPNOTSUPP:

Berkeley description: The attempted operation is not supported for the type of object referenced. Usually this occurs when a file descriptor refers to a file or socket that cannot support this operation, for example, trying to accept a connection on a datagram socket.

WinSock description: Same as Berkeley. "You can't make a silk purse from a sow's ear."

Detailed descriptions:

accept(), listen(): socket is not of type that supports connection-oriented service.

recv(), recvfrom(), sendto(): MSG_OOB was specified, but the socket is not of type SOCK_STREAM

   
This page is designed to help you to understand Winsock TCP error 10045. It will not necessarily mean you can instantly fix issues when your computer tells you that Winsock is having problems with code 10045, rather it will give you the necessary background information to help solve the matter.

Programming declarations for 10045 (WSAEOPNOTSUPP):

C#
long WSAEOPNOTSUPP = 10045 ;

VB.net
Dim WSAEOPNOTSUPP As Long = 10045

VB6
Dim WSAEOPNOTSUPP As Long
WSAEOPNOTSUPP = 10045