Hi,
this is the first time for me that I have to use sockets. I have some problems to understand the read / write mechanism.
What I do now:
1. Socketread in a thread with:
Myresult=socketread("Mysocket1", true)
2. socketwrite("Mysocket2",blabla)
How can I transfer Myresult in the main thread (I now use a global variable) ?
How can I secure end the socketread ? The parameter says "waiting forever ...."
Has anybody a simple example for me ? The PC Soft examples are to complicated for me.
this is the first time for me that I have to use sockets. I have some problems to understand the read / write mechanism.
What I do now:
1. Socketread in a thread with:
Myresult=socketread("Mysocket1", true)
2. socketwrite("Mysocket2",blabla)
How can I transfer Myresult in the main thread (I now use a global variable) ?
How can I secure end the socketread ? The parameter says "waiting forever ...."
Has anybody a simple example for me ? The PC Soft examples are to complicated for me.