X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echod_second.c;h=283d28e2b186f4211ca2b52538a34a7e7f202bc6;hp=617eaf14dcee91572b4c66a940b9bfc59846f27c;hb=04c68576a3be5ccfda8faf2030d4cbc2997c29fa;hpb=99ef4679f4d9d22707075c7e05a4dbd3900edcd1 diff --git a/sources/TCP_echod_second.c b/sources/TCP_echod_second.c index 617eaf1..283d28e 100644 --- a/sources/TCP_echod_second.c +++ b/sources/TCP_echod_second.c @@ -1,4 +1,4 @@ -/* TCP_echod.c +/* TCP_echod_second.c * * Copyright (C) 2001-2003 Simone Piccardi * @@ -20,29 +20,28 @@ * * Program echod * Elementary TCP server for echo service (port 7) + * Second version * * Author: Simone Piccardi * Jun. 2001 * * Usage: echod -h give all info * - * $Id: TCP_echod_second.c,v 1.2 2003/12/25 17:31:09 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers */ -#include /* predefined types */ -#include /* include unix standard library */ -#include /* IP addresses conversion utiliites */ -#include /* socket library */ -#include /* include standard I/O library */ -#include +#include /* primitive system data types */ +#include /* unix standard library */ +#include /* IP addresses conversion utilities */ +#include /* socket constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ #include /* syslog system functions */ -#include /* signal functions */ -#include /* error code */ -#include /* error strings */ -#include +#include /* signal constants, types and functions */ +#include /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ #include "Gapil.h" @@ -158,7 +157,7 @@ int main(int argc, char *argv[]) len = sizeof(cli_add); while (((conn_fd = accept(list_fd, (struct sockaddr *)&cli_add, &len)) < 0) && (errno == EINTR)); - if ( conn_fd < 0) { + if (conn_fd < 0) { PrintErr("accept error"); exit(1); }