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