Subject: Re: [libssh2] Tunneling?

Re: [libssh2] Tunneling?

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 8 Jan 2008 05:29:03 +0100

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. The function returns a valid
> channel instance, but I'm unable to connect to my specified 3rd
> party.

_direct_tcpip_ex() will ask the server to connect to the specified
port, and the way I understand the code the returned channel is what
you'd use for talking to the remote server.

Ie. the channel is the TCP/IP connection.

If you want to tunnel or proxy to let another local application use
this channel, you have to create the socket and so on in the client.

Does this answer your question? What is your goal with this tunnel?

//Peter

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-01-08