X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echo.c;h=46ec5ca23d3402d8b080c2748197efec7b181c26;hp=275d570c1739d423f9a79fdcae0826f200add939;hb=851bba583269d11d055fcc3701d40492f2abe26b;hpb=49ae2790472cc2ad1e54ea26d037306598f9c83b diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index 275d570..46ec5ca 100644 --- a/sources/TCP_echo.c +++ b/sources/TCP_echo.c @@ -26,7 +26,7 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.5 2003/07/27 23:41:04 piccardi Exp $ + * $Id: TCP_echo.c,v 1.6 2003/07/28 22:16:36 piccardi Exp $ * ****************************************************************/ /* @@ -144,9 +144,9 @@ void ClientEcho(FILE * filein, int socket) if (nwrite < 0) { printf("Errore in scrittura %s", strerror(errno)); } - nread = FullRead(socket, recvbuff, strlen(sendbuff)); + nread = read(socket, recvbuff, strlen(sendbuff)); if (nread < 0) { - printf("Errore in lettura %s", strerror(errno)); + printf("Errore in lettura %s\n", strerror(errno)); } recvbuff[nread] = 0; if (fputs(recvbuff, stdout) == EOF) {