Если есть желание пользоватся компонентами стороннего производства, то пожалуй этот http://www.torry.net/vcl/comms/ras/rasmonitor.zip был бы то что нужно.
| Цитата | By Bitlogic Software Solutions. Whenever an internet connection is established through the RAS Dialup, usually the ISP assigns a temporary IP address to the calling PC. Using this unique IP address the PC can communicate with the outside world and can also be used to act as a Server by publishing this IP address to Clients. In some cases, the ISP assigns a Fixed or Permanent IP address to the calling PC which does not change on each connection to the internet. A fixed IP Address is much desired by Network users, but the service also comes with a fee with certain ISP's. Your PC's IP address can be compared to your Telephone number, people who know it can easily contact you when available. Component features:
* Notification of Active RAS Connection to the Internet. * Notification of Disconnection from the Internet. * Full Status information of RAS Dialup device and Connection Status. * Returns Local IP Address and HostName of PC System. * Returns RASClient Assigned Internet Address and Hostname for Dialup connection. * Returns RASServer ISP Server Address and Hostname for Dialup connection. * Function to Hangup any Active RAS Connection. * Simple operation and integration into any application project. |
При возникновения дисконекта, просто опять можно вызывать набор. Или если есть желание можно посмотреть небольшой отрывак в этих исходниках. |