X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FElemEchoTCPClient.c;h=3529cd792203a3d5348bab470a79f6c50cd4926c;hp=57b8fa1e3a94bcee4018ac14ddb92cf3afee2444;hb=a051e3c3d3b403ee210274d8c2ec7d756c531a21;hpb=54d27b07aee6d293931ee274a3ede927f517f2cf diff --git a/sources/ElemEchoTCPClient.c b/sources/ElemEchoTCPClient.c index 57b8fa1..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.3 2001/09/09 22:45:34 piccardi Exp $ + * $Id: ElemEchoTCPClient.c,v 1.5 2003/02/02 20:35:33 piccardi Exp $ * ****************************************************************/ /* @@ -38,8 +38,6 @@ #include /* socket library */ #include /* include standard I/O library */ -#include "wrappers.h" - #define MAXLINE 256 void usage(void); void ClientEcho(FILE * filein, int socket); @@ -122,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); }