projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revisione terminali continua, aggiunti alcuni nuovi flag e corrette
[gapil.git]
/
listati
/
TCP_echod_second.c
diff --git
a/listati/TCP_echod_second.c
b/listati/TCP_echod_second.c
index 78557afdb04fd9f9a16e3a9fb406d59b3ac9f1f4..26f09871052943903c1cebe9246d71a6e6c2d2cf 100644
(file)
--- a/
listati/TCP_echod_second.c
+++ b/
listati/TCP_echod_second.c
@@
-22,6
+22,7
@@
int main(int argc, char *argv[])
/* handle echo to client */
while (1) {
/* accept connection */
/* handle echo to client */
while (1) {
/* accept connection */
+ len = sizeof(cli_add);
while (((conn_fd = accept(list_fd, (struct sockaddr *)&cli_add, &len))
< 0) && (errno == EINTR));
if ( conn_fd < 0) {
while (((conn_fd = accept(list_fd, (struct sockaddr *)&cli_add, &len))
< 0) && (errno == EINTR));
if ( conn_fd < 0) {