I'm using edtFTPFree. I would like to detect that my FTP server is no longer connected as in it has either gone off line or the cable has become unplugged.
I was hoping that there would be some kind of event that I could trap if this happens but I was unable to find one.
My second choice was to run a polling loop and keep checking the IsConnected property. This didn't work because even after I removed power from my FTP device/disconnected the cable IsConnected still kept returning true.
My next choice was to run a polling loop and send out a command, such as get files. hoping that if the server wasn't there, then an exception would be thrown. This didn't work either. I sent the command but the code just seemed to go off into the woods.
Is is possible to do this using edtFTP/Free? How about with one of the libraries that are for purchase?
Or do I have to back away from the FTP side and essentially use windows WMI to create a plug and play handler for ethernet?
Thanks,
Ira Idelson