wodSFTP using without events - WeOnlyDo Discussion board

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

by peter.kurz@itelio.de, Tuesday, January 23, 2007, 11:09 (6326 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

Re: wodSFTP using without events

by wodDamir, Tuesday, January 23, 2007, 11:18 (6326 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