pooja
10-08-2002, 04:50 AM
My problem is that i am developing an application for T-Mobile(which is on a GPRS network and hence, is connected to internet). The application dials in to a VPN Server using the RasDial API asynchronously. After the T-Mobile is connected to the VPN Server, consider the case the T-Mobile is out of coverage of the GPRS network. In that case, the application should be able to detect that since the T-Mobile is not on internet , the VPN connection is broken. Using the RasEnumConnections on a timer does not help as it returns the VPN connection as an active connection even when the GPRS coverage is lost. Also, RasGetConnectStatus returns the status RASCS_Connected for the VPN connection for 3 minutes after GPRS connectivity is lost. Is there any other way to detect instantaneously that VPN conectivity is lost due to out of GPRS network coverage (like pinging the VPN Server on timer event)??