http://qs1969.pair.com?node_id=51151


in reply to Re: Is there any way to connect two sockets together?
in thread Is there any way to connect two sockets together?

Because my script is a cut down of the big picture. In the big picture it tunnels over a http proxy. It opens up a socket connection with a remote internet host via the proxy (using the connect method) this is a trival negotiation1. It then connects the data recieved from that connection to a local port. I can then connect applications to the local port and so to the outside world.

1 CONNECT host:port HTTP1/0 <NL> or some such.
--

Zigster

  • Comment on Re: Re: Is there any way to connect two sockets together?

Replies are listed 'Best First'.
Re:{3} Is there any way to connect two sockets together?
by jeroenes (Priest) on Jan 11, 2001 at 20:57 UTC
    Aha.

    Than use the SSH solution I gave you should work. It just tunnels a local connection to $localport to $proxy:$proxyport. You simply let your client connect to $localport and it wouldn't know the difference.

    Hope this helps,

    Jeroen
    I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)

      That will not work, OK without going too far down this road what will you connect the ssh proxy port too? The proxy? It is a web proxy why not connect directly to that.. The point is that the proxy talks http I need to setup the conduit before I can use it ssh does not know how to do it.. Damn this would be easier if I had paper, does that make more sense?
      --

      Zigster