After sleeping on this problem I have made quite a bit of progress. Having yet another sample program from the Internet that didn't work was frustrating and I got a bit of tunnel vision. Here is what I have figured out and where I am at now:
1) The port number listed in the server and client code needs to be the same.
2) The server binds to the port and listens on it.
3) The client binds to a port that is random appearing to me. The client will send to the port listed in the code and listen on the random appearing port number.
4) I misunderstood what the code should do and got a case of tunnel vision. I didn't pay attention to the easy parts of the code. I thought that the server and the client would chat with each other (like sample code from my past). This code does not do that. This code has the server echo out everything to all clients. Thus, with multiple clients running in multiple terminal windows I have clients chatting with each other.
5) I still don't understand why I get the four client error messages as listed in my initial posting. They are all in the Multiplex.pm module. Later I can try to look at the module code but I suspect that it is well above beginner level.
Any ideas on the error messages?
Thanks,
Bruce
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.