<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Jun 2018 11:52:00 Z</lastBuildDate><pubDate>25 Jun 2018 19:39:00 Z</pubDate><description>Hi,&#13;
&#13;
this is the first time for me that I have to use sockets. I have some problems to understand the read / write mechanism.&#13;
&#13;
What I do now:&#13;
&#13;
1. Socketread in a thread with:&#13;
Myresult=socketread("Mysocket1", true)&#13;
&#13;
2. socketwrite("Mysocket2",blabla)&#13;
&#13;
How can I transfer Myresult in the main thread (I now use a global variable) ?&#13;
How can I secure end the socketread ? The parameter says "waiting forever ...."&#13;
&#13;
Has anybody a simple example for me ? The PC Soft examples are to complicated for me.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question/read.awp</link><title>[WD22] Socket question</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-66011/read.awp</comments><pubDate>27 Jun 2018 11:52:00 Z</pubDate><description>OK,&#13;
&#13;
I looked at the examples.&#13;
&#13;
In my special way the&#13;
&#13;
LOOP&#13;
IF EventWait("TERM",5) THEN BREAK&#13;
gsEmpfangsstring=SocketRea…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-66011/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-66011/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question/read.awp">[WD22] Socket question</source><title>Re: [WD22] Socket question</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-65993/read.awp</comments><pubDate>25 Jun 2018 23:19:00 Z</pubDate><description>Hi Michael&#13;
&#13;
there are 2 examples for sockets management, one for one on one communication, and one for one to many...&#13;
&#13;
Bothe…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-65993/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question-65993/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65991-wd22-socket-question/read.awp">[WD22] Socket question</source><title>Re: [WD22] Socket question</title></item></channel></rss>
