X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FUDP_echo.c;fp=sources%2FUDP_echo.c;h=b14e1f6cbb884fa711c07aae1ce019ebe770fe64;hp=8de90878235dc7fee1fd217dfdfbe5a55e31c724;hb=ec40bdfb4408819c4b6845e2c25b897ae505cc59;hpb=a0184b68ca9dced41be95342ffd8a8ee04d2b861 diff --git a/sources/UDP_echo.c b/sources/UDP_echo.c index 8de9087..b14e1f6 100644 --- a/sources/UDP_echo.c +++ b/sources/UDP_echo.c @@ -26,7 +26,7 @@ * * Usage: echo -h give all info's * - * $Id: UDP_echo.c,v 1.1 2004/05/01 17:53:42 piccardi Exp $ + * $Id: UDP_echo.c,v 1.2 2004/05/02 13:10:32 piccardi Exp $ * ****************************************************************/ /* @@ -137,9 +137,6 @@ void ClientEcho(FILE * filein, int socket, struct sockaddr_in * serv_addr) printf("Errore in lettura: %s\n", strerror(errno)); return; } - if (nread == 0) { /* server closed connection, stop */ - return; - } recvbuff[nread] = 0; /* else read is ok, write on stdout */ if (fputs(recvbuff, stdout) == EOF) { perror("Errore in scrittura su terminale");