X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2FTCP_echod_first.c;h=bfe826a8c76d7ad61a05ac032390c32cb456d5b4;hb=5af25bf51719d4f435f57a8d7df64f286ad64996;hp=b1356fe3f55213daae0bf5109fa2c1fa22c47370;hpb=49ae2790472cc2ad1e54ea26d037306598f9c83b;p=gapil.git 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);