how to detact socket connection status
hi.. i am using socket class for the connection. How can I detect for
disconnection of the socket? Because calling the Flush() method (called
writeUTFBytes() eariler) is not throwing IOError exception. I found that AIR
has some network monitor which can be used for this case. But I am not using
AIR. Also, another work around it to connect to some URL again to check the
status. I don't really want to use this method because the application needs
to send data back to the server very very often and I'd like to be slow down.
please help me out.....thanks in advance...
|