projects
/
gapil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7226c6
)
Altre modifiche
author
Simone Piccardi
<piccardi@gnulinux.it>
Sun, 27 Jul 2003 15:20:45 +0000
(15:20 +0000)
committer
Simone Piccardi
<piccardi@gnulinux.it>
Sun, 27 Jul 2003 15:20:45 +0000
(15:20 +0000)
sources/TCP_echo.c
patch
|
blob
|
history
diff --git
a/sources/TCP_echo.c
b/sources/TCP_echo.c
index 48e0326a20fb4e84ab440f5f36071ceda0d5f8c4..84929865fcdf2e789db62e46fda332d615bdfdd9 100644
(file)
--- a/
sources/TCP_echo.c
+++ b/
sources/TCP_echo.c
@@
-26,7
+26,7
@@
*
* Usage: echo -h give all info's
*
*
* 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 $
*
****************************************************************/
/*
*
****************************************************************/
/*
@@
-117,7
+117,7
@@
int main(int argc, char *argv[])
}
return 0;
}
}
return 0;
}
- /*
read daytime from server
*/
+ /*
do read/write operations
*/
ClientEcho(stdin, sock);
/* normal exit */
return 0;
ClientEcho(stdin, sock);
/* normal exit */
return 0;
@@
-144,7
+144,7
@@
void ClientEcho(FILE * filein, int socket)
if (nwrite < 0) {
printf("Errore in scrittura %s", strerror(errno));
}
if (nwrite < 0) {
printf("Errore in scrittura %s", strerror(errno));
}
- nread =
FullR
ead(socket, recvbuff, strlen(sendbuff));
+ nread =
r
ead(socket, recvbuff, strlen(sendbuff));
if (nread < 0) {
printf("Errore in lettura %s", strerror(errno));
}
if (nread < 0) {
printf("Errore in lettura %s", strerror(errno));
}