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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.