<div dir="ltr">2013/5/4 Zaher Dirkey <span dir="ltr"><<a href="mailto:parmaja@gmail.com" target="_blank">parmaja@gmail.com</a>></span><br><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">

<div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Sat, May 4, 2013 at 8:47 AM, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>></span> wrote:<br>


<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><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">


repeat<br>
  if Socket.CanRead(timeout) then<br>
    begin<br>
    insock:=Socket.Accept;<br>
    if insock<>-1 then<br>
      //start working with insock<br>
    else<br>
      //deal with error<br>
    end;<br>
until ThreadTerminated;<br>
<br>
Ludo</blockquote></div><div><br></div></div><div>Thank you!</div></blockquote></div><br></div><div style="font-family:tahoma,sans-serif">If you success, tell us, i must fix my sockets too :)</div><div class="im"><br>-- <br>

<div dir="ltr"><span style="font-family:'courier new',monospace">I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3<br><br>Best Regards<br>Zaher Dirkey</span></div></div></div></div></blockquote></div>

<div><br></div><div style>Yes:</div><div style><br></div><div style><a href="https://bitbucket.org/silvioprog/tcpipcomp/src/945866300819bfe0d9d957c64f301e2ff92682e5/src/tcpipserver.pas?at=master#cl-161">https://bitbucket.org/silvioprog/tcpipcomp/src/945866300819bfe0d9d957c64f301e2ff92682e5/src/tcpipserver.pas?at=master#cl-161</a><br>

</div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>