Windows Sockets 1.1应用实例(118)

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

    time_t     start, end;                /* variables to hold read timing  */

    long total_time = 0L;        /* variable to hold delta t       */

    long ltemp = 0L;

    extern int run_cancelled;

   

    /* What makes shout unique is that it generates data*

     * in memory (as opposed to accessing the disk).       *

     * 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: