X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSimpleEchoTCPServer.c;h=890954d5915655f0526139a9ce1499101c217d79;hp=d4ba728fcb0ab2d65109ef41db4690a68be54b00;hb=730b0bb045c1794c4f4675605dc106b756e82d69;hpb=d6636dc7afc27b7ac5b9feb214031ae1e7fd2594 diff --git a/sources/SimpleEchoTCPServer.c b/sources/SimpleEchoTCPServer.c index d4ba728..890954d 100644 --- a/sources/SimpleEchoTCPServer.c +++ b/sources/SimpleEchoTCPServer.c @@ -26,7 +26,7 @@ * * Usage: echod * - * $Id: SimpleEchoTCPServer.c,v 1.5 2002/12/03 11:06:05 piccardi Exp $ + * $Id: SimpleEchoTCPServer.c,v 1.6 2003/02/02 20:35:34 piccardi Exp $ * ****************************************************************/ /* @@ -147,7 +147,7 @@ void SockEcho(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; }