How to detect when the client is back online
The application that I am trying to build basically try to do this:
Each time the user updates a record, the app will check to see if the machine is online (LAN, internet, etc). If it is online, it will send the record to the server, if it is not online, then it will save it locally and when the user goes online, it will send the record to the server.
So I am thinking to send the data to the server. If that fails, then I can assume that the user is offline or the server is down, which is the same in my situation. Now the main problem is how to know when the user is back online. There must be a system event that gets fired when you go online. I am trying to know the name of that event and how to use it. I appreciate your help.