X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FElemEchoTCPServer.c;h=fa77ff00195fef48c9362c0a57b70f3db7a46400;hp=f02ac5c846a19851102a8ac9bc5ce02b8e88258b;hb=626fee850ef998ab730a6da711494d6a5ace1be5;hpb=6483a787322c614bc6282a0bf0ee001f1bf54b44 diff --git a/sources/ElemEchoTCPServer.c b/sources/ElemEchoTCPServer.c index f02ac5c..fa77ff0 100644 --- a/sources/ElemEchoTCPServer.c +++ b/sources/ElemEchoTCPServer.c @@ -26,7 +26,7 @@ * * Usage: echod -h give all info * - * $Id: ElemEchoTCPServer.c,v 1.4 2002/12/03 11:06:05 piccardi Exp $ + * $Id: ElemEchoTCPServer.c,v 1.7 2003/05/02 09:55:13 piccardi Exp $ * ****************************************************************/ /* @@ -148,7 +148,7 @@ void ServEcho(int sockfd) { /* main loop, reading 0 char means client close connection */ while ( (nread = read(sockfd, buffer, MAXLINE)) != 0) { printf("Letti %d bytes, %s ", nread, buffer); - nwrite = SockWrite(sockfd, buffer, nread); + nwrite = FullWrite(sockfd, buffer, nread); } return; }