Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

mark69_fnd

Posts

1

Joined

Thu Jul 24, 2014 1:57 am

Unable to cancel asynchronous connection

by mark69_fnd » Thu Jul 24, 2014 2:03 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

Re: Unable to cancel asynchronous connection

by EDT Support » Thu Jul 24, 2014 11:07 am

Connecting is not a regular task and can't be cancelled in this way. Use Close(true) instead as this will close the socket forcefully. Also, you should be able to use the Timeout property to achieve the same effect. This will also allow you to call the synchronous method, Connect, which will simplify your code.

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 30 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron