X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echod_first.c;h=bfe826a8c76d7ad61a05ac032390c32cb456d5b4;hp=b1356fe3f55213daae0bf5109fa2c1fa22c47370;hb=99ef4679f4d9d22707075c7e05a4dbd3900edcd1;hpb=5ae4c5191a8b2d6f9112c56d9e65dca942986fcf diff --git a/sources/TCP_echod_first.c b/sources/TCP_echod_first.c index b1356fe..bfe826a 100644 --- a/sources/TCP_echod_first.c +++ b/sources/TCP_echod_first.c @@ -26,7 +26,7 @@ * * Usage: echod -h give all info * - * $Id: TCP_echod_first.c,v 1.2 2003/07/27 23:41:04 piccardi Exp $ + * $Id: TCP_echod_first.c,v 1.3 2003/12/25 17:31:09 piccardi Exp $ * ****************************************************************/ /* @@ -42,6 +42,8 @@ #include /* signal functions */ #include /* error code */ #include /* error strings */ +#include + #include "Gapil.h" #define BACKLOG 10 @@ -138,6 +140,7 @@ int main(int argc, char *argv[]) /* handle echo to client */ while (1) { /* accept connection */ + len = sizeof(cli_add); if ( (conn_fd = accept(list_fd, NULL, NULL)) < 0) { PrintErr("accept error"); exit(1);