Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check it broadband is working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01311018
Message ID:
01311091
Vues:
17
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform