P is for Practical | |
PerlMonks |
Re: Using select() on only one socketby gargle (Chaplain) |
on Sep 04, 2005 at 10:26 UTC ( [id://489039]=note: print w/replies, xml ) | Need Help?? |
Hi, Interestingly enough this code works: server.plThe server sends the numbers from 0 to 1000 a second at a time. Maximum 5 clients are catered for.
client.plThe client looks for a 'working' socket. If nothing found it will print a dot. If found it will get a handle to read the socket.
-- if ( 1 ) { $postman->ring() for (1..2); }
In Section
Seekers of Perl Wisdom
|
|