X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echo_second.c;h=11f2ff1a54edd0f0b724dccf58a0ae23ff7b3b35;hp=fcf5a4fff7cafef64c467f90d089a5673df6916a;hb=26f7a8bb19c6cb198c213757a97b6ac79e40db4b;hpb=65cdd0498d1d9473110f86ebddede62c298e60dd diff --git a/sources/TCP_echo_second.c b/sources/TCP_echo_second.c index fcf5a4f..11f2ff1 100644 --- a/sources/TCP_echo_second.c +++ b/sources/TCP_echo_second.c @@ -1,4 +1,4 @@ -/* TCP_echo.c +/* TCP_echo_second.c * * Copyright (C) 2001-2003 Simone Piccardi * @@ -18,27 +18,30 @@ */ /**************************************************************** * - * Program TCP_echo.c + * Program TCP_echo_second.c * Simple TCP client for echo service (port 7) + * This version handle server closing connection * * Author: Simone Piccardi * Jun. 2001 * * Usage: echo -h give all info's * - * $Id: TCP_echo_second.c,v 1.1 2003/10/18 16:30:23 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 error codes */ -#include /* include erroro strings definitions */ +#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 /* error definitions and routines */ +#include /* C strings library */ +#include /* C standard library */ + +#include "Gapil.h" +#include "macros.h" #define MAXLINE 256 void usage(void);