How can I know when my provider closes the gprs connection. When that occurs, I want to reconnect and restart my application (2nd option is to reset the modem which will automatically reconnect and restart app, but data will be lost). What APIs are needed to be called for reconnecting.
Thank you for your help.
More detailed description follows.
I’m exchanging messages between a Fastrack Supreme module (doesn’t have a public IP address) and a PC with fixed public IP address on a fixed period basis.
Every period (let’s say 24 hours) the module sends it’s IP address to the server. Upon recieval, the PC connects to the module and exchanges messages. The application is based on the OpenAT TCP/IP Server example config files.
But, normally, my provider closes the gprs connection every know and then (module doesn’t have a permanent IP address). When that happens, I want to reconnect and inform the PC about the new IP address (asynchronously).