Home Forums .NET libraries Xceed SFTP/FTP for .NET Does Abort operation require response from the server?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20734 |

    Does Abort operation require response from the server?
    If it does and if the network is very slow (let say that the server will never send response) when State becomes “NotConnected”?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Vlad (had 2415 views)

    User (Old forums)
    Member
    Post count: 23064

    “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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.