Hi,<br><br>Has anybody forwarded a local port to a mysql port using libssh?<br>I have the following problem while doing so.<br><br>I am creating a channel and forwarding it to a mysql port (using channel_open_forward() ).<br>
The problem is after forwarding to mysql the channel will have some data to read (Like mysql server version, etc).<br>I am reading that from the channel and writing into the local port.<br>Then the local port will have some data to be forwarded to the mysql server.
<br>I need to read this and write it into the forwarded channel.<br><br>This time it fails. <br><br>I can not write the data (read from local port) in to the previous channel. I need to create a new channel.<br>Even new channel wont work! This situation keeps repeating.
<br><br>What is the standard way to achieve this?<br clear="all"><br>-- <br>Sabyasachi