Another thing about the 'ReusePort' and 'ReuseAddr' that I'm not sure has been hit upon yet is that there is (I only remember this because I read it like 15 minutes ago) is that there is a single parameter called 'Reuse' that will allow your script/program to use the same port/address even if the script/program is stopped.
Here is a snippet from the IO::Socket POD on this machine (Win2k, Perl 5.005_03):
SUB-CLASSES
IO::Socket::INET
'IO::Socket::INET' provides a constructor to create an AF_INET domain socket and some related methods. The constructor can take the following options
...
...
...
...
Reuse -- Set SO_REUSEADDR before binding
Hope this is of some use to you...
Note: One thing you will need to be careful of (this is a general networking practice...) is if anything is running on the same port that your program is running on. If so, you'll have a lot of problems. I don't remember whether or not you even need to have a 'ReusePort' parameter since, if I recall, you can't have multiple services bound to one port anyway (or maybe that comes from my lack of knowledge of sockets in the *nix/*nux domain).
Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"
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.