<div dir="ltr">2013/4/25 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Why is that ?<br>
<br>
Please define "read and write at the same time" first.</blockquote><div><br></div><div style>Sorry, my English is bad. ^^</div><div style><br></div><div style>So, a small example (pseudo code):</div><div style>
<br></div><div style>procedure TMyThread1.Execute;</div><div style>begin</div><div style> while not Terminated do</div><div style> begin</div><div style> GlobalSocket.Write ...<br></div><div style> end;</div><div style>
end;</div><div style><br></div><div style><div>procedure TMyThread2.Execute;</div><div>begin</div><div> while not Terminated do</div><div> begin</div><div style> GlobalSocket.Read ...</div><div> end;</div><div>end;</div>
</div><div style><br></div><div style>MyThread1.Start;<br></div><div style>MyThread2.Start;<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thank you!<br>
<br>
* <a href="https://bitbucket.org/silvioprog/tcpipcomp" target="_blank">https://bitbucket.org/<u></u>silvioprog/tcpipcomp</a> (this repo is temporary, and this all code can undergo drastic changes at any time)<br>
<br>
<br>
... like ScktComp of Delphi. (no Synapse, LNet or Indy please, I need to use native code)<br>
</blockquote>
<br></div>
Strange remark. Synapse, lnet or Indy are native pascal code.<span class=""><font color="#888888"><br>
<br>
Michael.</font></span></blockquote><div><br></div><div style>Yes, I love Synapse, but it is not distributed with Free Pascal. I think the Free Pascal need to distribute something like SktComp(<a href="http://pastebin.com/QBZU89cy">http://pastebin.com/QBZU89cy</a>) of Delphi. SSockets is not multi-threaded.</div>
<div> </div></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>