I am facing a problem while detecting whether a socket is closed
(other side).
My application connects to a server socket which listens. After a
while, when the server socket closes, I want to know before sending
any data, whether the socket is closoed or not.
My assumption is i have to use the select() call. But select is always
returning me 1 which meanns that the server socket is ready for
reaceing data. (which in fact has closed).
How do i go about this ?
I dont wish to send any data if the server socket is closed.
Regards.
Vikram