Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Checking if a non-blocking socket is activeby rcaputo (Chaplain) |
on Oct 09, 2009 at 17:59 UTC ( [id://800351]=note: print w/replies, xml ) | Need Help?? |
You should be able to use select() or IO::Select with a zero timeout to poll for data socket activity (inclusing closure). Ideally you should use it with a timeout when you're waiting for socket input.
In Section
Seekers of Perl Wisdom
|
|