Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with WinSock, what´s happening here?
Message
De
25/04/2005 19:58:55
Walter Meester
HoogkarspelPays-Bas
 
 
À
25/04/2005 10:03:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01006357
Message ID:
01008292
Vues:
47
This message has been marked as the solution to the initial question of the thread.
Hi pablo,

What I would do is enable a timer that sends a PING to the server every 2 seconds or so.
The timer would set a flag "Pingstatus" to "Sent"

In the data arrival, you would set same property "Answer recieved"

When the timer is fired for at least the second time, and the "pingstatus" property is set to "Sent", it means you never got an answer to the sent "PING", and you can assume that the server has been shut down.

Good luck,

Walter,


SNIP

>What is the problem here, then?

The problem is that you're sending a "PING", but the procedure never goes into a wait state so that the DataArrival event can be processed. You can use a DOEVENTS in the loop, but it really is a dirty solution here I personally would not rely on.

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform