|
I'm having trouble determining when my connection has been closed by the ftp server. Here's the test that I am doing (all on my local network):
Am I misunderstanding what CheckConnectionState is supposed to do? |
|
The only reliable way to determine whether the connection is still active is to send a command over it - if the connection has already been lost, it won't be possible to transmit the command to the server and the connection will be acknowledged as disconnected. In case of FTP, the This said, it is a bit strange that |