X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSimpleEchoTCPServer.c;h=890954d5915655f0526139a9ce1499101c217d79;hp=beda57480c9c9000681f2fc6dbbaf60f810145c9;hb=e3e15ed6d698e5cc35f3b7f4c5db96adc38255c3;hpb=54d27b07aee6d293931ee274a3ede927f517f2cf diff --git a/sources/SimpleEchoTCPServer.c b/sources/SimpleEchoTCPServer.c index beda574..890954d 100644 --- a/sources/SimpleEchoTCPServer.c +++ b/sources/SimpleEchoTCPServer.c @@ -26,7 +26,7 @@ * * Usage: echod * - * $Id: SimpleEchoTCPServer.c,v 1.4 2001/09/09 22:45:34 piccardi Exp $ + * $Id: SimpleEchoTCPServer.c,v 1.6 2003/02/02 20:35:34 piccardi Exp $ * ****************************************************************/ /* @@ -39,8 +39,6 @@ #include /* include standard I/O library */ #include -#include "wrappers.h" - #define BACKLOG 10 #define MAXLINE 256 @@ -149,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; }