in reply to UDP Socket: Resource temporarily unavailable

Erm... maybe a silly question: you do not run syslog, do you? If you run netstat -an | grep 514 and see a line like

udp 0 0 0.0.0.0:514 0.0.0.0:*

chances are there's a process already listening.

--shmem

update: it is a silly question; if there was, it would die "Cant establish socket"

Set up the socket as DGRAM:

my $sock = IO::Socket::INET->new( LocalAddr => 'loghost', LocalPort => 514, Proto => 'udp', Type => SOCK_DGRAM, # Listen => '5' # for SOCK_STREAM ) or die "Cant establish socket";
_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}