Hello everybody
I am working on a client application that connects to a C# server using the Socket class. I am trying to handle the case in which the server goes offline, and I would like the client to try to reconnect after the previous connect times out.
Currently I try to re-connect on the IOErrorEvent.IO _ERROR event handler. The issue is that it seems like the socket is not trying to make another connection.
I've seen the following post http://stackoverflow.c om/questions/8939/actionscript-3-0-sockets-cant-reconnect , but I was wondering if somebody knows a method for achieving socket reconnection, or a good way to handle situations in which server is unavailable.
Thanks in advance
I am working on a client application that connects to a C# server using the Socket class. I am trying to handle the case in which the server goes offline, and I would like the client to try to reconnect after the previous connect times out.
Currently I try to re-connect on the IOErrorEvent.IO _ERROR event handler. The issue is that it seems like the socket is not trying to make another connection.
I've seen the following post http://stackoverflow.c om/questions/8939/actionscript-3-0-sockets-cant-reconnect , but I was wondering if somebody knows a method for achieving socket reconnection, or a good way to handle situations in which server is unavailable.
Thanks in advance