Can I use multi-session to multi sftp servers simultaneously

Advertisement

Hiro.A
Joined:
Posts:
18
Location:
Japan

Can I use multi-session to multi sftp servers simultaneously

Hello,

Now I am trying to make my program to manipulate several sftp servers simultaneously. For the first step, I tried ListDirectory from 3 servers by using backgroundworker objects.
But it seemed not to work correctly.

So, I want to hear, if I can use .net assembly thread-safe or not , in order to know it was caused by my fault or not.


Regards,

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: Can I use multi-session to multi sftp servers simultaneously

You can use separate Session objects from different threads. Single Session instance guards itself from concurrent accesses.

Please attach logs showing the problem.

Reply with quote

Hiro.A
Joined:
Posts:
18
Location:
Japan

Re: Can I use multi-session to multi sftp servers simultaneo

Ok,

So I understood it was caused by my fault. I must look for what went wrong.
I will retry later.

If I found something, I will tell you.

Thanks anyway,

Reply with quote

Hiro.A
Joined:
Posts:
18
Location:
Japan

Re: Can I use multi-session to multi sftp servers simultaneo

Now I found this issue's point.

I tried 3 servers , for each servers' tunnel, they used the same local tunnel port (50000).

But I did not know how to specify local tunnel port, would you teach me ?


Regards,

Reply with quote

Hiro.A
Joined:
Posts:
18
Location:
Japan

Re: Can I use multi-session to multi sftp servers simultaneo

I tried "TunnelLocalPortNumber" by AddRawSettings and seemed to succeed.

Thanks!

Reply with quote

Advertisement

You can post new topics in this forum