Multiple SSHClients do I need multiple ScFileStorages

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
tom_1234
Posts: 16
Joined: Fri 28 Jul 2017 19:50

Multiple SSHClients do I need multiple ScFileStorages

Post by tom_1234 » Fri 28 Jul 2017 21:03

I am working on a app that will have multiple threads and each thread will have a SSHClient object so I can contact multiple PCs.
So do I need to create a ScFileStorage object for each ScSSHClient object?
If so can all of the ScFileStorage objects point to the same directory?
I see there is a ScMemoryStorage object but do not see any info in help for it? So when & how is the MemoryStorage used?

Any examples of multiple SSHClients & threads?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Multiple SSHClients do I need multiple ScFileStorages

Post by ViktorV » Tue 01 Aug 2017 07:47

You can use one TScFileStorage instance for multiple TScSSHClient objects.
You can get information about the TScMemoryStorage component in SecureBridge help: https://www.devart.com/sbridge/docs/tsc ... torage.htm
Using the TSSHClient component in a multithreaded application does not differ from its use in a single-threaded application, so you can use the demo projects distributed with SecureBridge.

Post Reply