Iniziato a lavorare sulla Shared Memory POSIX. Risistemate un po' di cose
[gapil.git] / sources / SimpleEchoTCPServer.c
index d4ba728fcb0ab2d65109ef41db4690a68be54b00..890954d5915655f0526139a9ce1499101c217d79 100644 (file)
@@ -26,7 +26,7 @@
  *
  * Usage: echod
  *
  *
  * 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);
     /* 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;
 }
     }
     return;
 }