in reply to Port stuff

Let me try to make my question a little more clearer, because I didn't explain it very well initially.

'jazz.logicware.com:10055' when opened with telnet returns some lines of plain text, and then closes the connection. I want to ultimatly have a script that will act like that server, but also once somebody opens that port, the script will read from the original (eg. logicware) server, and forward that text on to the user.
And since I am obviously new at this, I would just like to know how to do those two functions seperatly so that I could learn how to do more with this stuff.

Replies are listed 'Best First'.
Re: Re: Port stuff
by repson (Chaplain) on Feb 15, 2001 at 13:16 UTC
    For that you should combine jeffa's responce above with this psudeo-code (I don't want to give you a solution to copy and paste) and documentation for IO::Socket may be useful too:
    bind to port for every client on port connect to remote server get text from remote server send text to client next client
    Or if the text is constant
    connect to remote server store text from remote server bind to port for every client on port send stored text to client next client