Thankyou all for your time

,
=>
$ serbod : This was a nice idea , Now after executing the lines :
s := RecvString(6000);
Memo1.Append(LastErrorDesc);
The Memo1 shows the "Connection timed out" Err. Description , But ,
Why ? , Is 6000 ms are not enough?
Note that the Telnet client and my server program are running on the same machine .
=======================================
=>
$ Ocye :
How do you get the information off an empty result? Maybe the memo isn't updated because your loop consumes all processing time.
I don't think so ,Buddy , I get the information from the debugger and not from from the memo,
And two other thoughts: What happens if you apply RecvString()? And is lasterror<>0 after the call?
The RecvString() gave the same result ,
==================================
The problem now is in the "Connection timed out", Can any one Tell me why this occurs ?
Regards ,