Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if second exe is running over a network
Message
De
29/06/2005 13:09:03
 
 
À
29/06/2005 10:23:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01027393
Message ID:
01027451
Vues:
14
>hi
>I have two exe's one could be running on a server, and the client on the local machine. I want the client application to know if the server application is running or not. I can do this easily if both apps are on the same machine, but how do I this if each exe's are on different machines
>tia
>Stuart

The simplest way i can think of is to have a free table on the server. When the server application starts it opens the table Exclusively. Then when the client application starts it attempts to open the same table. If it can not, then the client knows the server application is running. But if can open it, then the server application is not running.

This method save the problem if the server application crashes for any reason, the table automatically gets closed, and the Exclusive flag is reset. And the client application will know that something has happen on the server.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform