Topic "Can I use multi-session to multi sftp servers simultaneously"

Author Message
Hiro.A
[View user's profile]

Joined: 2012-10-24
Posts: 18
Location: Japan
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,
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
You can use separate Session objects from different threads. Single Session instance guards itself from concurrent accesses.

Please attach logs showing the problem.
Hiro.A
[View user's profile]

Joined: 2012-10-24
Posts: 18
Location: Japan
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,
Hiro.A
[View user's profile]

Joined: 2012-10-24
Posts: 18
Location: Japan
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,
Hiro.A
[View user's profile]

Joined: 2012-10-24
Posts: 18
Location: Japan
I tried "TunnelLocalPortNumber" by AddRawSettings and seemed to succeed.

Thanks!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License