Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with WinSock, what´s happening here?
Message
From
20/04/2005 14:02:00
 
 
To
20/04/2005 03:45:05
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006357
Message ID:
01006655
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform