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


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

I don't think there is a simpler way (well, unless you consider using select simpler than threads). I wrote such a beast and it works quite nicely for me. There is also one in the Perl Cookbook (if you have a copy or know where to download the code samples -- which I don't, sorry).

Update: I think this is called a "port mapper" in the Cookbook.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Is there any way to connect two sockets together?

Replies are listed 'Best First'.
Re: (tye)Re: Is there any way to connect two sockets together?
by zigster (Hermit) on Jan 11, 2001 at 20:14 UTC
    Thanks for the hint, I was playing with select as I read your post ;-) however I was not able to find any references in the cookbook. I had previously looked do you have any idea what section it was it?
    --

    Zigster
      Looks like it's section 17.18, "Program: fwdport".