Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I truly check for Internet connection?
Message
From
07/01/2003 12:34:32
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00724735
Message ID:
00738898
Views:
27
Mel,

I'm thinking that pinging will give a slow response when not connected...is this for a situation where you *know* there is no static connection? If so, I would experiment with InternetGetConnectedStateEx (or InternetGetConnectedState), and use the ping after you get a positive result. I believe the danger of the InternetGetConnectedState functions is a false positive, but not a false negative.

IOW, if InternetGetConnectedState returns a quick result saying you are not connected, I would think it would be correct.

Does that make sense?

>>It would do the check, but I don't think it would prompt to dial if not connected. In that same thread, Rodd went the wwIPStuff route, because apparently it will dial if necessary.<
>
>Thanks Steve... in this situation I wouldn't want it to dial.
>
>Mel Cummings
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform