Windows Sockets 1.1应用实例(120)

2010-12-30 20:58:11 · 作者: · 浏览: 63013
nbsp;

       if (run_cancelled) {

           WSASetLastError(WSAEINTR);

           break;     /* Non-blocking mode was cancelled */

       }

          

       tmp = send(hSock, (char FAR*) &DataBuffer, send_len, 0);

       if (tmp == SOCKET_ERROR) {

           if (h_errno == WSAEWOULDBLOCK)

              continue;

           else {

              wshout_err (hOurDlg, WSAGetLastError(), "send()");

           }

       &n