*
* Usage: echo -h give all info's
*
- * $Id: TCP_echo.c,v 1.3 2003/07/27 14:28:19 piccardi Exp $
+ * $Id: TCP_echo.c,v 1.4 2003/07/27 15:20:45 piccardi Exp $
*
****************************************************************/
/*
}
return 0;
}
- /* read daytime from server */
+ /* do read/write operations */
ClientEcho(stdin, sock);
/* normal exit */
return 0;
if (nwrite < 0) {
printf("Errore in scrittura %s", strerror(errno));
}
- nread = FullRead(socket, recvbuff, strlen(sendbuff));
+ nread = read(socket, recvbuff, strlen(sendbuff));
if (nread < 0) {
printf("Errore in lettura %s", strerror(errno));
}