There's more than one way to do things | |
PerlMonks |
Re: Problem with SO_REUSEPORT in IO::Socket::INETby Necos (Friar) |
on Apr 14, 2002 at 00:58 UTC ( [id://158874]=note: print w/replies, xml ) | Need Help?? |
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-CLASSESHope 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;"
In Section
Seekers of Perl Wisdom
|
|