1: /*
   2: 	speedr.c
   3: 
   4: 	with speeds.c used to time the links
   5: */
   6: # include "defs.h"
   7: 
   8: /* global */
   9: struct daemonparms netd;
  10: 
  11: main(argc,argv)
  12:   char **argv; {
  13:     char buf[2000];
  14:     int savd, n;
  15:     register int i;
  16:     debugflg = DBV;
  17:     setupdaemon(argc,argv);
  18:     savd = netd.dp_datasize;
  19:     putchar('!');
  20:     for(;;){
  21:         netd.dp_datasize = savd;
  22:         while(getreset() == BROKENREAD);
  23:         while(nread(&n,2) == BROKENREAD);
  24:         printf("Length = %d\n",n);
  25:         netd.dp_datasize = n;
  26:         for(;;){
  27:             while((i=nread(buf,n)) == BROKENREAD);
  28:             if(i != n)putchar('#');
  29:             if(buf[0] == 'Z')break;
  30:             }
  31:         }
  32:     }

Defined functions

main defined in line 11; never used

Defined variables

netd defined in line 9; used 3 times
Last modified: 1980-07-16
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 685
Valid CSS Valid XHTML 1.0 Strict