10035-wsaewouldblock
The resource is temporarily unavailable. For a non-locking socket, this error is usually returned if the request operation cannot be executed immediately. For example, calling connect on a non-paused socket will return this error. Because the connection request cannot be executed immediately.
10037-wsaealready
The operation is complete. In general, this error occurs when an operation that is already in progress is attempted on a non-locking socket. For example, on a non-locked socket that is already in a connected process, call connect or WSAConnect again. Also, this error occurs when the service provider is in the process of executing the callback function for the Winsock function that supports the callback routine.
The application layer socket receives data: 1, the kernel copy data to the socket receive buffer 2, the application calls the RECV,COPY socket to receive the buffered data to the application process. Application socket Send data: 1, the application calls the send copy data to the socket send buffer, 2, the kernel maintains the socket buffer through the IP protocol to emit data
Socket connection return error code