From: Simone Piccardi Date: Sun, 27 Jul 2003 15:20:45 +0000 (+0000) Subject: Altre modifiche X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=commitdiff_plain;h=a0baefcdc1505ecb62f6336acef1153bb56eaf73;p=gapil.git Altre modifiche --- diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index 48e0326..8492986 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.3 2003/07/27 14:28:19 piccardi Exp $ + * $Id: TCP_echo.c,v 1.4 2003/07/27 15:20:45 piccardi Exp $ * ****************************************************************/ /* @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) } return 0; } - /* read daytime from server */ + /* do read/write operations */ ClientEcho(stdin, sock); /* normal exit */ return 0; @@ -144,7 +144,7 @@ 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)); }