Completato echo su UDP, e messi cenni sulla connect per UDP, da riprendere
[gapil.git] / sources / UDP_echo.c
index 8de90878235dc7fee1fd217dfdfbe5a55e31c724..b14e1f6cbb884fa711c07aae1ce019ebe770fe64 100644 (file)
@@ -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");