Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet connection
Message
 
À
01/03/2000 23:49:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00339030
Message ID:
00341136
Vues:
20
>>FWIW, I added a function to wwIPStuff recently called HTTPPing() - with it you can ping a Web site link and time it out after x seconds if it doesn't return. Frankly I think this is the only reliable way to check for a 'Net connection by actually looking for the location you're trying to connect to...
>
>
>This is essentially what WinInet's InternetCheckConnection function does; checks the accessibility of a given URL. Is this what you are using in wwIPStuff, or did you roll your own PING?

I tried InternetCheckConnection and it returned the wrong value...

No, I actually do an HTTPGetExAsync against a URL to see if it comes back with something in the timeout period.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform