![]() |
|
P is for Practical | |
PerlMonks |
Re^3: New to perl: IO Select question :(by pg (Canon) |
on Aug 21, 2005 at 03:50 UTC ( #485477=note: print w/replies, xml ) | Need Help?? |
For server side, one cares whether each connection can read or write, not the listening server socket. The listening socket does not read or write. Let's do a simple testing. With the following client and server:
Run perl -w server.pl in one window, then run perl -w client.pl in another window, nothing gets printed in the server window! run perl -w client.pl again, "abcd" gets printed. This is not what one will want. change server code:
The first time you run perl -w client.pl, server side knows that it can read, and prints "abcd". That's what one wants.
In Section
Seekers of Perl Wisdom
|
|