*
* Usage: echod -h give all info
*
- * $Id: TCP_echod.c,v 1.5 2003/06/19 11:43:13 piccardi Exp $
+ * $Id: TCP_echod.c,v 1.7 2003/06/19 14:18:27 piccardi Exp $
*
****************************************************************/
/*
* Variables definition
*/
int list_fd, conn_fd;
- int waiting;
+ int waiting = 0;
pid_t pid;
struct sockaddr_in serv_add, cli_add;
socklen_t len;
printf("Usage:\n");
printf(" echod [-h] \n");
printf(" -h print this help\n");
- printf(" -d print debug info\n");
+ printf(" -d write debug info\n");
printf(" -i use interactively\n");
+ printf(" -w N wait N sec. before calling accept\n");
exit(1);
}
/*