Lines Matching refs:args

87 	ArgStruct args;		/* Argumentsfor all the calls                */  in main()  local
152 args.prot.rcvbufsz = atoi(optarg); in main()
153 args.prot.sndbufsz = args.prot.rcvbufsz; in main()
175 args.host = (char *)malloc(strlen(optarg) + 1); in main()
176 strcpy(args.host, optarg); in main()
177 printf("host is %s\n", args.host); in main()
187 args.server_host = in main()
189 strcpy(args.server_host, optarg); in main()
190 printf("server is %s\n", args.server_host); in main()
223 args.nbuff = TRIALS; in main()
224 args.tr = trans; in main()
225 args.sr = server; in main()
226 args.port = port; in main()
230 args.prot.sndbufsz = 0; in main()
231 args.prot.rcvbufsz = 0; in main()
234 args.prot.sndbufsz); in main()
237 Setup(&args); in main()
238 Establish(&args); in main()
240 if (args.tr) { in main()
248 args.bufflen = 1; in main()
249 args.buff = (char *)malloc(args.bufflen); in main()
250 args.buff1 = (char *)malloc(args.bufflen); in main()
252 PrepareToReceive(&args); in main()
253 Sync(&args); in main()
262 if (args.tr) { in main()
263 SendData(&args); in main()
264 RecvData(&args); in main()
266 PrepareToReceive(&args); in main()
269 RecvData(&args); in main()
271 PrepareToReceive(&args); in main()
273 SendData(&args); in main()
280 free(args.buff); in main()
281 free(args.buff1); in main()
283 if (args.tr) { in main()
284 SendTime(&args, &latency); in main()
286 RecvTime(&args, &latency); in main()
288 if (args.tr && printopt) { in main()
318 if (args.tr) { in main()
319 nrepeat = MAX((RUNTM / ((double)args.bufflen / in main()
320 (args.bufflen - inc + in main()
323 SendRepeat(&args, nrepeat); in main()
325 RecvRepeat(&args, &nrepeat); in main()
329 args.bufflen = len + pert; in main()
330 if ((args.buff = in main()
331 (char *)malloc(args.bufflen + bufalign)) == in main()
337 if ((args.buff1 = in main()
338 (char *)malloc(args.bufflen + bufalign)) == in main()
349 memtmp = args.buff; in main()
350 memtmp1 = args.buff1; in main()
352 args.buff += (bufalign - in main()
353 ((intptr_t) args.buff % in main()
358 args.buff1 += (bufalign - in main()
359 ((intptr_t) args.buff1 % in main()
363 if (args.tr && printopt) in main()
365 n, args.bufflen, nrepeat); in main()
368 if (args.tr) { in main()
381 Sync(&args); in main()
388 PrepareToReceive(&args); in main()
390 SendData(&args); in main()
392 RecvData(&args); in main()
434 SendTime(&args, &bwdata[n].t); in main()
436 RecvTime(&args, &bwdata[n].t); in main()
462 PrepareToReceive(&args); in main()
464 Sync(&args); in main()
467 RecvData(&args); in main()
470 PrepareToReceive(&args); in main()
473 SendData(&args); in main()
486 SendTime(&args, &bwdata[n].t); in main()
488 RecvTime(&args, &bwdata[n].t); in main()
497 bwdata[n].bits = args.bufflen * CHARSIZE; in main()
502 if (args.tr) { in main()
519 if (args.tr && printopt) { in main()
538 if (args.tr) in main()
541 CleanUp(&args); in main()