Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: IO::Socket::INET -- Jettero verses non-blocking in windowsby jettero (Monsignor) |
on Aug 02, 2004 at 12:10 UTC ( [id://379261]=note: print w/replies, xml ) | Need Help?? |
I did end up using threads actually. In the case that I can't open a non-blocking listener, I make a thread and share the messages in an array. It worked great and I can get the IP from the recv(). Really, the best part is, this is the first time I've every needed to use a thread and now that I know how, it's like there's a whole new world out there. And for posterity, here is my original non-blocking loop along with my new magical threaded version.
In Section
Seekers of Perl Wisdom
|
|