utility/SSHChannelUtil.cpp
std::thread directForwarding(CSSHChannel &forwardingChannel, const std::string &remoteHost, int remotePort, const std::string &localHost, int localPort, IOContext &ioContext)
    {
        forwardingChannel.openForward(remoteHost, remotePort, localHost, localPort);
        std::thread channelReadThread{readChannelThread, std::ref(forwardingChannel), std::ref(ioContext)};
        return (channelReadThread);
    }
//
// Set up a channel to be direct forwarded and specify a write callback for any output received on the channel.
//
Set up a channel to be direct forwarded and specify a write callback for any output received on the channel.
Set up a channel to be direct forwarded and specify a write callback for any output received on the channel .
std::thread directForwarding(CSSHChannel &forwardingChannel, const std::string &remoteHost, int remotePort, const std::string &localHost, int localPort, IOContext &ioContext)
    {
        forwardingChannel.openForward(remoteHost, remotePort, localHost, localPort);
        std::thread channelReadThread{readChannelThread, std::ref(forwardingChannel), std::ref(ioContext)};
        return (channelReadThread);
    }
std :: thread directForwarding ( CSSHChannel & forwardingChannel , const std :: string & remoteHost , int remotePort , const std :: string & localHost , int localPort , IOContext & ioContext ) { forwardingChannel . openForward ( remoteHost , remotePort , localHost , localPort ) ; std :: thread channelReadThread { readChannelThread , std :: ref ( forwardingChannel ) , std :: ref ( ioContext ) } ; return ( channelReadThread ) ; }
Set up a channel to be direct forwarded and specify a write callback for any output received on the channel.
Set up a channel to be direct forwarded and specify a write callback for any output received on the channel .