Say, a tcp client has connected to a tcp server on socket s. Next, the client call shutdown(s);
then how should the server detect that the client has did that operation?
PS: I have known the server will receive FD_CLOSE. However, I don't know how to check that flag on the server side.