X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSimpleEchoTCPClient.c;h=73654529b7f825e3da66d66d4ce994c46d54db91;hp=feac7865e6476ff2fe51590d7c402583d358bdd3;hb=9571a19b1524491a8e43f2c0176243d2483cf986;hpb=8363203066864251f55edeb8e41bcce81fa7da7b diff --git a/sources/SimpleEchoTCPClient.c b/sources/SimpleEchoTCPClient.c index feac786..7365452 100644 --- a/sources/SimpleEchoTCPClient.c +++ b/sources/SimpleEchoTCPClient.c @@ -8,7 +8,7 @@ * * Usage: echo -h give all info's * - * $Id: SimpleEchoTCPClient.c,v 1.1 2001/06/12 22:17:22 piccardi Exp $ + * $Id: SimpleEchoTCPClient.c,v 1.2 2001/06/13 17:17:15 piccardi Exp $ * ****************************************************************/ /* @@ -105,7 +105,7 @@ void EchoClient(FILE * filein, int socket) int nread; while (fgets(sendbuff, MAXLINE, filein) != NULL) { SockWrite(socket, sendbuff, strlen(sendbuff)); - if ( (nread = SockRead(socket, recvbuff, MAXLINE)) == 0) { + if ( (nread = read(socket, recvbuff, MAXLINE)) == 0) { perror("Sever read error:"); exit(-1); }