Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Perl network programmingby jbert (Priest) |
on Oct 03, 2007 at 07:46 UTC ( [id://642324]=note: print w/replies, xml ) | Need Help?? |
On the face of it, a function (pack_sockaddr_in) is being called with something with length 0, instead of length 4. Given the name of the function and the fact that it's expecting a '4', I'd guess that it wants an IP address.
So my best guess is that you're running a script which gets an IP address from somewhere (perhaps on the command line as an option, perhaps from a config file, perhaps it queries the system to find one) and this isn't happening, so the variable which normally contains the IP address is empty - causing the error. So you might want to check whatever documentation you have for this script (or read the source) to see how it gets the IP address it listens on. You might also want to check that if the box has any additional IP addresses, they are all present. Of course, this is all supposition. For trouble-shooting, some useful things to know are:
p.s. The comments boxes on perlmonks take HTML, not plain text. Amongst other things, this means that your comment appears on one long line (and is harder to read) unless you break it up with <p> or <br> tags. You can use the 'Preview' button to see how others will see your comment.
In Section
Seekers of Perl Wisdom
|
|