|
|
|
@ -681,14 +681,17 @@ main (argc, argv)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (tcp) {
|
|
|
|
|
(void) gettimeofday (&connectedtv, (struct timezone *) NULL);
|
|
|
|
|
if (tcp)
|
|
|
|
|
{
|
|
|
|
|
(void) gettimeofday (&connectedtv,
|
|
|
|
|
(struct timezone *) NULL);
|
|
|
|
|
temp = connectedtv;
|
|
|
|
|
tvsub (&temp, &conntv);
|
|
|
|
|
if (verbose) {
|
|
|
|
|
if (verbose)
|
|
|
|
|
{
|
|
|
|
|
printf ("Connected...\n");
|
|
|
|
|
printf ("TCP Latency: %d.%06d seconds\n", (int) temp.tv_sec,
|
|
|
|
|
(int) temp.tv_usec);
|
|
|
|
|
printf ("TCP Latency: %d.%06d seconds\n",
|
|
|
|
|
(int) temp.tv_sec, (int) temp.tv_usec);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -833,7 +836,8 @@ main (argc, argv)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (tcp && !discard) {
|
|
|
|
|
if (tcp && !discard)
|
|
|
|
|
{
|
|
|
|
|
fd_set mask;
|
|
|
|
|
int n = 0;
|
|
|
|
|
|
|
|
|
@ -872,7 +876,8 @@ main (argc, argv)
|
|
|
|
|
/* Read from the server */
|
|
|
|
|
nr = readline (files, recvline, n, stop_at_newlines);
|
|
|
|
|
}
|
|
|
|
|
else if (discard) {
|
|
|
|
|
else if (discard)
|
|
|
|
|
{
|
|
|
|
|
/* No reply, no read */
|
|
|
|
|
}
|
|
|
|
|
#ifdef HTTP
|
|
|
|
|