Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: WinInet InternetCheckConnection and InternetGetConnectedState
| Subject: | Re: WinInet InternetCheckConnection and InternetGetConnectedState |
| Posted by: | "Martin James" (nospam@tuthill.com) |
| Date: | Sat, 2 Feb 2008 08:24:40 |
> True but Codegear provides the Interface to it just like the rest of
> windows. I had seen this reference you gave before I posted. It's
> identical to what's in the help and really doesn't say a damned thing
> that might be particularly informative about it -- and it certainly
> doesn't reveal that it is worthless. Since I'm using delphi, not vs, I
> was hoping other delphi developers would have alternative ways to
> accomplish this.
The problem is that 'The Internet' does not exist as a discrete entity and
you cannot determine connection to something that does not exist. 'The
internet' is a world-wide collection of nodes and subnets that is
continually reconfiguring itself. It is not static and its topology,
connectivity, links, routes and the reachability of nodes is dynamic.
If you network cable is unplugged, are you connected to the internet?
If your cable is in, but your local router is powered off, are you
connected?
If your router is on, but your ISP server is down, are you connected?
If your router is on, your ISP server up but the ISP backbone router is
down, are you connected?
If your ISP router is up, but the fibre cable connecting your country to the
country of your target server is broken, are you connected?
If your connectivity to the target country is up, but the ISP router
handling the web server you are trying to reach is down, are you connected?
> I guess I'll just execute the thread, try to download the file(s)
> without checking first to see if Internet is available and maybe set a
> timer so that it doesn't just hang.
If you've threaded off the 'new version' check, then what is the problem?
Rgds,
martin
none