perlquestion
jettero
<p> My question is almost identical to the question asked in node #[292856] -- but still slightly different. I wish to build a non-blocking socket. Apparently you can't in ActivePerl 5.8.3?
<p> I refuse to accept that. I have tried these two methods (which both work great at home in my lunix):
<p><code>
$ioioio = new IO::Socket::INET(
Proto => "udp",
LocalPort => $port,
Blocking => 0,
) or die "socket is dumb: $!"
</code>
<p> That returns the unhelpful error "socket is dumb: at line something something."
<p> I seem to get an error from this at least -- assuming I skip the "<code>Blocking => 0</code>" above. <code>
fcntl($ioioio, F_SETFL, O_NONBLOCK);</code>
<p> It reports that my vendor has not defined F_SETFL.
<p> (Sorry in advance, I searched a lot and didn't find much, but I can't imagine this hasn't been asked before.)