X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FElemEchoTCPClient.c;h=19f62650766bbdfd6846e9c4d4da930e04ee6a43;hp=ac1d9910a4a89ca62e8dd3da8c7b701838853934;hb=e3e15ed6d698e5cc35f3b7f4c5db96adc38255c3;hpb=6483a787322c614bc6282a0bf0ee001f1bf54b44 diff --git a/sources/ElemEchoTCPClient.c b/sources/ElemEchoTCPClient.c index ac1d991..19f6265 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.6 2003/04/29 15:33:39 piccardi Exp $ * ****************************************************************/ /* @@ -99,7 +99,7 @@ int main(int argc, char *argv[]) return -1; } /* read daytime from server */ - EchoClient(stdin, sock_fd); + ClientEcho(stdin, sock_fd); /* normal exit */ return 0; } @@ -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); }