Windows Sockets 1.1应用实例(119)

2010-12-30 20:58:11 · 作者: · 浏览: 63009
;                      */

   

    for (counter = 0; counter < BUF_SIZE; counter++)

       DataBuffer[counter] = counter;

   

    /* Write data on the descriptor like a banshee,

     * careful to time the writes and count data

     * transmitted:

     */

   

    SetDlgItemText(hOurDlg, IDD_COMMENT, "...Sending TCP Data");

    time(&start);  

    while ( bytes_sent < total_len) {   /* while still bytes to send... */

       do {

           ;

       } while (ShoutBlockingHook()); /* Dispatch messages if any */

     &