How to detect that a server had closed the socket / crashed in the client side ?
- by Spredzy
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