хост: 127.00.0.1; порт: 5001; Время чтения: 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;
//....
При тайм-ауте часть других операций не будет выполняться. Есть идеи по продолжению кода? Спасибо.