How to detect that a server had closed the socket / crashed in the client side ?
Posted
by Spredzy
on Stack Overflow
See other posts from Stack Overflow
or by Spredzy
Published on 2010-05-01T10:02:51Z
Indexed on
2010/05/01
10:07 UTC
Read the original article
Hit count: 299
Hi all,
I am developing a Client/Server application.
I would like to know how can I detect that a server had closed the socket or had crashed in the client side (my android App)
I am running on one side my android app, that is connected. On the other side I am running netcat (for testing purpose).
I Would like to know what signal is sent to my client socket or what happen when I kill netcat. Because now, I immediately get an error message that impose me to "Force Close" my application. How can I handle it properly ?
Thank you
© Stack Overflow or respective owner