“Abort” tries to cancel the current operation. It does not change the state to “NotConnected”, but to “Connected” (thus idle). It does not wait for the reply (though there is a reply), but the state does not change immediatly.
If you wish to disconnect, just call “Disconnect”, making sure to trap possible exceptions. The disconnection will succeed, but the library may throw some other error saying something was cancelled.
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Martin (had 3178 views)