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?
I refuse to accept that. I have tried these two methods (which both work great at home in my lunix):
$ioioio = new IO::Socket::INET(
Proto => "udp",
LocalPort => $port,
Blocking => 0,
) or die "socket is dumb: $!"
That returns the unhelpful error "socket is dumb: at line something something."
I seem to get an error from this at least -- assuming I skip the "Blocking => 0" above.
fcntl($ioioio, F_SETFL, O_NONBLOCK);
It reports that my vendor has not defined F_SETFL.
(Sorry in advance, I searched a lot and didn't find much, but I can't imagine this hasn't been asked before.)
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.