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");