projects
/
gapil.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Sistemazione dei TODO e trattazione dei valori di si_code in sigunfo_t
[gapil.git]
/
listati
/
TCP_echo_fifth.c
1
int main(int argc, char *argv[])
2
{
3
/*
4
* Variables definition
5
*/
6
int sock, i;
7
int reset = 0;
8
...
9
/* call sockaddr to get a connected socket */
10
if ( (sock = sockconn(argv[optind], "echo", 6, SOCK_STREAM)) < 0) {
11
return 1;
12
}
13
/* do read/write operations */
14
ClientEcho(stdin, sock);
15
/* normal exit */
16
return 0;
17
}