Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Why SshExec close the connexion ?
Re: Why SshExec close the connexion ? [message #53082 is a reply to message #53077] Mon, 24 February 2020 10:31 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 276
Registered: March 2010
Experienced Member
Thanks Oblivion,

I have confused channel and session, I have thought that the session is closed after each SshExec call.

based on your response, i create this helper class :
struct SshExecHelper
{
    SshSession& session;
    SshExecHelper(SshSession& _session): session(_session){}

    int operator()(const String& cmd, String& out, String& err)
    {
        SshExec e(session);
        return e.Execute(cmd, out, err);
    }
}


regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HttpRequest cannot get the server [SOLVED]
Next Topic: [NOT REPRODUCIBLE] HttpRequest gzip format error
Goto Forum:
  


Current Time: Mon Aug 25 18:45:36 CEST 2025

Total time taken to generate the page: 0.08149 seconds