Page 1 of 1

Multiple SSHClients do I need multiple ScFileStorages

Posted: Fri 28 Jul 2017 21:03
by tom_1234
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?

Re: Multiple SSHClients do I need multiple ScFileStorages

Posted: Tue 01 Aug 2017 07:47
by ViktorV
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.