[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libssh2-devel
Subject:    Re: [libssh2] Tunneling?
From:       Peter Stuge <peter () stuge ! se>
Date:       2008-01-08 4:29:03
Message-ID: 20080108042903.17015.qmail () stuge ! se
[Download RAW message or body]

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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic