Windows Sockets 1.1应用实例(100)

2010-12-30 20:58:11 · 作者: · 浏览: 63054
;   * This tests the 'raw' speed of the TCP connection   *

     * as the rate-limiting access time is eliminated.   *

     * First, generate the data and place it into an      *

     * array, data_buffer:                         */

   

    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 UDP Data ...");

    time( &start );