An Indy question.
I added a timeout parameter to my TIdTCPClient ReadLn call so my thread could check for terminated every so often. However, if the timeout happens, I never get any data from the ReadLn from that point on. How do I reset the TIdTCPClient so it will look for a line again?
procedure TClientListner.Execute;
var
msg : String;
begin
while not terminated do
begin
msg := fSocketCon.IOHandler.ReadLn('\n', 200);
if not fSocketCon.IOHandler.ReadLnTimedOut then
begin
DoSomeThing(msg);
end;
end;
end;