Perl: the Markov chain saw | |
PerlMonks |
launching another program but using the existing socketby Anonymous Monk |
on Jul 22, 2001 at 02:34 UTC ( [id://98710]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm relatively new to Perl, and I've got a question about a client/server wrapper app I'm trying to work on. Specifically, here's what I want the client side to do:
1. prompt user for input (an integer) 2. initiate connection with server 3. send user's input to server 4. launch another app, which will also connect to (actually, through) the same server I'd like my client to ultimately use the same port as the app it launches. What I don't know is, how do I make the launched app (already a stand-alone program) use the same connection I just established?? The server app I'm planning is going to be a TCP redirector, which first accepts user input (corresponds to a particular IP and port), and then redirects the resulting connection to that particular IP and port. Any advice appreciated - I've tried looking around for an existing TCP redirector in Perl - didn't find one. Thanks in advance, Glenn
Back to
Seekers of Perl Wisdom
|
|