Asking for help on TCP server programming# Unix - 噫吁兮,危乎高哉
I*s
1 楼
Generally server recvs sth, then sends response,
and closes the connection. However sometimes it
requires the server to wait passively for the
client to shut down the connection, otherwise
server keeps connection open and waits for
client's next request. If so, what's the answer
for 1) and 2)?
Or is it that each time a new request opens a
new connection? If so, what's the answer for 2)?
1) What's the mechanism to indicate to the server
if the client has shut down connection or not?
2) And what's
and closes the connection. However sometimes it
requires the server to wait passively for the
client to shut down the connection, otherwise
server keeps connection open and waits for
client's next request. If so, what's the answer
for 1) and 2)?
Or is it that each time a new request opens a
new connection? If so, what's the answer for 2)?
1) What's the mechanism to indicate to the server
if the client has shut down connection or not?
2) And what's