Completato echo su UDP, e messi cenni sulla connect per UDP, da riprendere
[gapil.git] / listati / UDP_ClientEcho.c
index 746d5a772a3e3de7ab73213569556ec285b0be91..3cbd3da99e5392139afc329e4fa5fba8a0197166 100644 (file)
@@ -19,9 +19,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");