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

10038 "Socket operation on nonsocket."

WSAENOTSOCK (Winsock error number: 10038)

Microsoft say this about Winsock error 10038 - WSAENOTSOCK:

An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.

Full details of Winsock TCP error 10038 - WSAENOTSOCK:

Berkeley description: An operation was attempted on something that is not a socket. The specified socket parameter refers to a file, not a socket.

WinSock description: Same as Berkeley. The socket input parameter is not a valid socket handle (either it never was valid, it's a file handle (not a socket handle), or if it was a socket handle, it has been closed).

Detailed description:

select(): fails with WSAENOTSOCK if any socket in an fd_set is an invalid socket handle.

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

Programming declarations for 10038 (WSAENOTSOCK):

C#
long WSAENOTSOCK = 10038 ;

VB.net
Dim WSAENOTSOCK As Long = 10038

VB6
Dim WSAENOTSOCK As Long
WSAENOTSOCK = 10038