Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check it broadband is working
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01311018
Message ID:
01311091
Views:
16
>>Hi!
>>
>>What's the fastest way of checking if there is a working internet connection, when a customers connection is down my routines that read info from a webpage take ages to time out. The customers thinks the software has "hung"
>>
>>Thanks in advance
>
>
>#define FLAG_ICC_FORCE_CONNECTION 0x01
>
>DECLARE INTEGER InternetCheckConnection IN Wininet.dll STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
>myFastLoadedSite = "http://www.google.com"
>IF InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0) == 0
>   RETURN []
>ENDIF
>
I've seen yahoo ping more often for such checks :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform