Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with WinSock, what´s happening here?
Message
De
20/04/2005 14:02:00
 
 
À
20/04/2005 03:45:05
Walter Meester
HoogkarspelPays-Bas
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:
01006655
Vues:
50
Walter, thanks. I´m really new to socket programming so I couldn't figure that.

My form should work like this:

A. User clicks RESTART or SHUTDOWN (let´s take SHUTDOWN by example)
B. I issue a SendData("SHUTDOWN"+CHR(13)+CHR(10))
Now here's one question: Every time I send data, the event DataArrival should trigger right? How do I retrieve data?
Every message that server returns should be stored in a property serverMessage in the form
The algorythm is:

SEND SHUTDOWN TO SERVER
SERVER RETURNS OK!
SEND WORD HELLO TO SERVER
If server returns OK!, it's still on.
If server does not return, then I show a message that the server is being shutdown.

However, my form seems to execute the DataArrival event only once (when I send SHUTDOWN). After that, it does not execute anymore... Hope I was clear. If u don't get what I'm saying, then tell me, so I can post the code here...

TIA
Pablo Márcio de Oliveira

Inside the scream is silent, inside it must remain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform