Windows Sockets 1.1应用实例(105)

2010-12-30 20:58:11 · 作者: · 浏览: 63040
sp;       /* exit from the while loop */

              break;

           } /* end if (total_time) */

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

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

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

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

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

      

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

       bytes_sent += tmp;