X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2FElemEchoTCPServer.c;h=fa77ff00195fef48c9362c0a57b70f3db7a46400;hb=5e54ad63881cd5bd7c71395d073127e41f1b68d6;hp=ba36b956a530a691d000a22f2e70f3a0bbc94264;hpb=0d1802dcd969187e6133ba143ebc473c9fefc259;p=gapil.git diff --git a/sources/ElemEchoTCPServer.c b/sources/ElemEchoTCPServer.c index ba36b95..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.3 2001/09/09 17:39:15 piccardi Exp $ + * $Id: ElemEchoTCPServer.c,v 1.7 2003/05/02 09:55:13 piccardi Exp $ * ****************************************************************/ /* @@ -39,7 +39,6 @@ #include /* include standard I/O library */ #include -#include "wrappers.h" #define BACKLOG 10 #define MAXLINE 256 @@ -149,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; }