wodSFTP using without events (wodSFTP / wodSFTP.NET / wodSFTPdll)

by peter.kurz@itelio.de @, (6675 days ago)

Hi,
i want use wodsftp in a multithreaded enviroment. Is it possible to use the commands synchron without any event handling?

I need something like

sftp.connect() 'Wait here until connect is ready
sftp.putfile(test.txt) 'Wait until file is transfered
sftp.disconnect

This code should run in a asynchron thread, so i do not need any events.

Thank you for your help

Peter

locked

Re: wodSFTP using without events

by wodDamir @, (6675 days ago) @ peter.kurz@itelio.de

Hi Peter,

Yes, but you will have to Enable Blocking mode before you call The connect Method.

Just set Blocking Property to True, and everything should work.

Regards,
Damba

locked