Article Listing 1 Listing 2 Listing 3 Listing 4
Table 1 jul93.tar

Listing 2

void noconnect()
{
alarm(1);    /* Hit the snooze button */
totsecs++;   /* Keep count of time passed */

if((opts&DEBUG)||(opts&VERBOSE))
printf("No connection after %d seconds!\n",
totsecs-1);

if(totsecs>timeout)
{
printf("%s not acknowledging connect attempt.\n",
hostname);
mypingexit(1);               /* Exit CODE 1 */
}
}