Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : Detect disconnect with multiple IPs
| Subject: | Detect disconnect with multiple IPs |
| Posted by: | "keyser" (keyser_so..@usa.com) |
| Date: | 13 Jun 2005 07:29:51 |
I have a very simple http server. I am using a TIDIPWatch
component and am catching the OnStatusChange event in order to
know when I should tell the user we are offline and when we are
on, to grab the correct IP address to bind to.
This works fine for a single IP address. However, when I have
multiple addresses, and one is disconnected, this event does not
fire. Is there a way to get an event when any ip address is
added or removed?
If not, I could put in a timer if there a way to check if a
specific ip address is still valid.
Thanks in advance.
(I am trying to create a test which a user has were he has a
local network which is not on the internet and a dial up for when
he accesses the net and exposes the http port. I do not have a
dial up account and am setting this up with two network cards,
one with a local ip and one with an internet ip. If this would
cause different behavior then a dial up.lan combination, please
let me know.)