Windows Sockets 1.1应用实例(121)

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

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

           time(&end);

           /* exit from the while loop */

           break;

          

       } /* end if (tmp == -1) */

       write_count++;          /* incr. counter of times written */

       bytes_sent += tmp;  /* total # of bytes placed on connection*/

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

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

 

       wsprintf(prbuf,"%ld\n",bytes_sent);

       SetDlgItemText(