Hopefully two not too hard questions. I have the latest stable version of Indy. I am probably just looking at the wrong properties.
1) how do I set timeouts on servers, so that if there is no data flowing, the connection is closed after x amount of time.
2) How do I test to see if there are any live connections to the servers, and if there are not, then stop the server.
ftpserver.Threads.LockList.Count = 0
appears to work well the first time I check it, but then I set up a timer, then inside the timer I call
if ftps then begin
if ftpserver.active and (ftpserver.Threads.LockList.Count = 0) then begin //the program dies here
ftpserver.Active := false;
ftps := false;
end else good := false;
good := false;
I have an antifreeze component on the form, and the problem happens both when I run from within the IDE and externally.
when the program dies, it appears to be running, I can not trace into the line.
Thanks in advance