hi friends,
is there any way to find the recv() side socket descriptor that its peer is closed at the other side ..
server will keep sending and client will receives it ... if client process closed i can get errno :EPIPE
but if the server process closed .. recv() in client will receive just value '0' and return sucess ....
is there any other way to find the recv socket property to tell the user that peer process is closed on the other side ...
i try poll() checking POLLRDHUP but in vain ... is there any other way left to find ...
because i want to show the user that the peer process is closed at the other side in recv() on client.c
please help me ...