0
主機:127.00.0.1; port:5001; ReadTimeout:3000;Delphi Indy10:IdTCPClient如何獲取服務器的響應,並且響應的長度未知
//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;
//....
當timerout其他操作的部分不會被執行。任何想法contionu代碼?謝謝。
很好!謝謝 – Jeason 2010-09-13 05:57:15