Windows Sockets 1.1应用实例(107)

2010-12-30 20:58:11 · 作者: · 浏览: 63039
eplyBuffer),

                      0, (struct sockaddr *) &dest, (int FAR *) &tmp);

       if (i_temp == SOCKET_ERROR) {

           if (h_errno == WSAEWOULDBLOCK) /* if no data, read again */

              continue;

           else {

              /* any error besides these. just punt */

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

           }

           break;

       } /* end if (i_temp == SOCKET_ERROR) */

     &