Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: how to open more than 10 channels using a single connection object for multithreading

$
0
0
We have resolved it with a workaround .
Used a list like 'List<SSHClient> clients' and added as many as NumOfSSHObjects.



NumOfSSHObjects = NumOfCommands / 10;
if ( (NumOfCommands % 10 ) > 0)
{
 NumOfSSHObjects = NumOfSSHObjects +1 ;
}

for (int i = 1; i <= NumOfSSHObjects ; i++)
        {
            clients.Add(new SshClient(connectionInfo));
        }

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>