Windows Sockets Error – WSAEINVAL 10022

In this post, you’ll learn more about the Windows Socket Error WSAEINVAL
10022 returned by the WSAGetLastError function in Windows as well a quick description about the error

Windows Socket Error Code

WSAEINVAL
10022

Windows Socket Error Description

Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the setsockopt function). In some instances, it also refers to the current state of the socket—for instance, calling accept on a socket that is not listening.