Iniziato a lavorare sulla Shared Memory POSIX. Risistemate un po' di cose
[gapil.git] / sources / ElemEchoTCPServer.c
index ba36b956a530a691d000a22f2e70f3a0bbc94264..1793d3fe8c6110132d28406f903ae4f2c832d74b 100644 (file)
@@ -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.5 2003/02/02 20:35:33 piccardi Exp $ 
  *
  ****************************************************************/
 /* 
@@ -39,7 +39,6 @@
 #include <stdio.h>      /* include standard I/O library */
 #include <time.h>
 
-#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;
 }