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 */
   }
}
