projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Altro materiale sulle capabilities.
[gapil.git]
/
sources
/
TCP_echod_second.c
diff --git
a/sources/TCP_echod_second.c
b/sources/TCP_echod_second.c
index 617eaf14dcee91572b4c66a940b9bfc59846f27c..0ac7c0ef072a15dcedf5dc9d6d701bdabbce0462 100644
(file)
--- a/
sources/TCP_echod_second.c
+++ b/
sources/TCP_echod_second.c
@@
-1,4
+1,4
@@
-/* TCP_echod.c
+/* TCP_echod
_second
.c
*
* Copyright (C) 2001-2003 Simone Piccardi
*
*
* Copyright (C) 2001-2003 Simone Piccardi
*
@@
-20,13
+20,14
@@
*
* Program echod
* Elementary TCP server for echo service (port 7)
*
* Program echod
* Elementary TCP server for echo service (port 7)
+ * Second version
*
* Author: Simone Piccardi
* Jun. 2001
*
* Usage: echod -h give all info
*
*
* Author: Simone Piccardi
* Jun. 2001
*
* Usage: echod -h give all info
*
- * $Id
: TCP_echod_second.c,v 1.2 2003/12/25 17:31:09 piccardi Exp
$
+ * $Id$
*
****************************************************************/
/*
*
****************************************************************/
/*
@@
-158,7
+159,7
@@
int main(int argc, char *argv[])
len = sizeof(cli_add);
while (((conn_fd = accept(list_fd, (struct sockaddr *)&cli_add, &len))
< 0) && (errno == EINTR));
len = sizeof(cli_add);
while (((conn_fd = accept(list_fd, (struct sockaddr *)&cli_add, &len))
< 0) && (errno == EINTR));
- if (
conn_fd < 0) {
+ if (conn_fd < 0) {
PrintErr("accept error");
exit(1);
}
PrintErr("accept error");
exit(1);
}