Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Сети > Перезвонить при разрыве связи


Автор: Олег_Игоревич 3.7.2005, 14:30
Здравствуйте ! Вот хочу узнать , как программно реализовать в звонилке (протокол - RAS) - "Перезвонить при разрыве связи ". В инете и на форуме ничего не нашел.

Автор: 1DRE 3.7.2005, 15:15
Если есть желание пользоватся компонентами стороннего производства, то пожалуй этот 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.

При возникновения дисконекта, просто опять можно вызывать набор.
Или если есть желание можно посмотреть небольшой отрывак в этих исходниках.

Автор: RA 3.7.2005, 18:25
Исходник полноценного RAS Dialera, со всеми теми функциями каторыми богат стандартный видосовский.

http://www.overbyte.be/arch/rasdial.zip

Автор: SoWa 4.7.2005, 05:37
Или проверяй соединение GetInternetConnectionState и дозванивайся, если коннекта нету.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)