At 10:51 PM -0400 6/23/01, Adam Stern wrote:
>Dear All,
>
>    My question wasn't really answered in my last message.
>Here was what I wanted to do.
>Write a server that listens on a port
>When a client connects, the server connects to another remote server.
>Everything the client says to the initial server gets told to the remote
>server, and everything the remote server says gets told to the initial
>client.

<snip>

>I'd like some code examples, or at least a huge hint.  Thank you very
>much.

Sounds like you want to do more than one thing at the same time. 
You're going to have a hard time doing that within MacPerl, since 
MacPerl is not multi-threaded nor multi-tasking (no fork, for 
example).  This is the same problem that MacPerl faces in a CGI 
environment, so you might review the archives to find out what the 
current recommendations are for using MacPerl with a web server.

Also, just a minor note, you kept asking about a 'bounce' server. 
What you've described above, however, is what I usually hear named a 
proxy server.

-Jeff Lowrey

Reply via email to