I have looked all over the place for something about the basic steps to setting up a tcp socket in Perl using
Socket.pm and I simply cannot find it. I am using
Socket.pm and I need to know if anyone out there would be willing to provide this.
Now, I know that there are examples for using Socket.pm in the Camel and the Cookbook but the explanations (for me) are sketchy at best and are in no way IMO easy for a beginner to get.
So, for example, what I would like to know is what are the steps to setting up a socket? Something like the following would be helpful:
# First, get the remote IP address
$remote_ipaddr = "192.168.120.1"
# Then get the remote port
$remote_port = "1400";
# Then what? And better yet, why?
The Socket.pm functions just totally baffle me as to their purpose and needs. There are so many of them yet only a few them are needed it seems like, right? And if so which ones are absolutely necessary to use? Why? At what times are they to be used and not used?
I am opting *not* to use IO::Socket::INET simply because its so easy to use and I really want to know what the needs are for Socket.pm (and my current project dissallows me from installing the module too).
----------
- Jim
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.