|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: nonblocking ioby Anarion (Hermit) |
| on Oct 11, 2001 at 08:05 UTC ( [id://118167]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||