*
* Usage: echo -h give all info's
*
- * $Id: TCP_echo.c,v 1.5 2003/07/27 23:41:04 piccardi Exp $
+ * $Id: TCP_echo.c,v 1.6 2003/07/28 22:16:36 piccardi Exp $
*
****************************************************************/
/*
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));
+ printf("Errore in lettura %s\n", strerror(errno));
}
recvbuff[nread] = 0;
if (fputs(recvbuff, stdout) == EOF) {