Windows Sockets 1.1应用实例(102)

2010-12-30 20:58:11 · 作者: · 浏览: 63049
bsp;  continue;

           else {

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

           }

          

           /* Calc. time elapsed & stats about any data sent */

           time(&end);

           if (total_time = (long) difftime(end, start)) {

              /* Print the statistics gathered    */

              wsprintf((LPSTR)prbuf,"%ld\n",write_count);

              SetDlgItemText(hOurDlg, IDD_WRITE, (LPSTR) prbuf);