projects
/
gapil.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
917c7c4d00c4b5497ee26fb2bbf7a791b6765853
[gapil.git]
/
listati
/
ServEcho.c
1
void ServEcho(int sockfd) {
2
char buffer[MAXLINE];
3
int nread, nwrite;
4
5
/* main loop, reading 0 char means client close connection */
6
while ( (nread = read(sockfd, buffer, MAXLINE)) != 0) {
7
nwrite = FullWrite(sockfd, buffer, nread);
8
}
9
return;
10
}