Windows Sockets Error – WSAENOTCONN 10057

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

Windows Socket Error Code

WSAENOTCONN
10057

Windows Socket Error Description

Socket is not connected.
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto) no address was supplied. Any other type of operation might also return this error—for example, setsockopt setting SO_KEEPALIVE if the connection has been reset.