good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: nonblocking ioby Anarion (Hermit) |
on Oct 11, 2001 at 12:05 UTC ( [id://118167]=note: print w/replies, xml ) | Need Help?? |
If you want to use non-blocking in sockets, you can use select by yourself, or just use IO::Select. There are three solutions: - fork - multiplex the conections with just one process - use threads Here's an example of the multiplexion, that i read in advanced perl programing:
I dont test the code, hope it works. $anarion=\$anarion; s==q^QBY_^=,$_^=$[x7,print
In Section
Seekers of Perl Wisdom
|
|