[libssh2] Tunneling?

2008-01-07 Thread Paul Thomas
Developers, Yeah, I'm asking for help again ;p Is there more to setting up a TCP/IP tunnel then just calling libssh2_channel_direct_tcpip_ex() with the needed information? I'm trying to get tunneling working and haven't had any luck so far. The function returns a valid channel instance, but I'm un

Re: [libssh2] Tunneling?

2008-01-07 Thread Peter Stuge
On Mon, Jan 07, 2008 at 10:49:08PM -0500, Paul Thomas wrote: > Yeah, I'm asking for help again ;p Is there more to setting up a > TCP/IP tunnel then just calling libssh2_channel_direct_tcpip_ex() > with the needed information? I'm trying to get tunneling working > and haven't had any luck so far. T

Re: [libssh2] Tunneling?

2008-01-07 Thread Paul Thomas
Yeah, what I'm going for is to be able to use the tunnel so another local application can use this channel. So, I'm guessing then that what I should do is create the connection with _direct_tcpip... and then I create a socket on the same machine with the local port I want their local application t

Re: [libssh2] Tunneling?

2008-01-07 Thread Sabyasachi Ruj
Yes. You are correct. It works with those steps in Linux. But in windows once I have read from the forwarded channel and written the response from my local socket to the channel, I am not able to read from that channel further. readbytes = libssh2_channel_read(channel,buf,4096); The above functio