X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FElemEchoTCPClient.c;h=3529cd792203a3d5348bab470a79f6c50cd4926c;hp=ac1d9910a4a89ca62e8dd3da8c7b701838853934;hb=730b0bb045c1794c4f4675605dc106b756e82d69;hpb=d6636dc7afc27b7ac5b9feb214031ae1e7fd2594 diff --git a/sources/ElemEchoTCPClient.c b/sources/ElemEchoTCPClient.c index ac1d991..3529cd7 100644 --- a/sources/ElemEchoTCPClient.c +++ b/sources/ElemEchoTCPClient.c @@ -26,7 +26,7 @@ * * Usage: echo -h give all info's * - * $Id: ElemEchoTCPClient.c,v 1.4 2002/12/03 11:06:05 piccardi Exp $ + * $Id: ElemEchoTCPClient.c,v 1.5 2003/02/02 20:35:33 piccardi Exp $ * ****************************************************************/ /* @@ -120,8 +120,8 @@ void ClientEcho(FILE * filein, int socket) char sendbuff[MAXLINE], recvbuff[MAXLINE]; int nread; while (fgets(sendbuff, MAXLINE, filein) != NULL) { - SockWrite(socket, sendbuff, strlen(sendbuff)); - nread = SockRead(socket, recvbuff, strlen(sendbuff)); + FullWrite(socket, sendbuff, strlen(sendbuff)); + nread = FullRead(socket, recvbuff, strlen(sendbuff)); recvbuff[nread] = 0; fputs(recvbuff, stdout); }