host:127.00.0.1; port:5001; ReadTimeout:3000;
//Following codes to get the response
procedure TForm1.Button2Click(Sender: TObject);
var
s:string;
begin
try
while True do
begin
s := s+IdTCPClient1.IOHandler.ReadChar();
end;
finally
showmessage(s);
....other operations...
end;
//....
When timerout the part of other operations will not be excuted.Any ideas to contionu the code?Thanks.