![]() |
|
No such thing as a small change | |
PerlMonks |
Checking whether or not IO::Socket::accept will blockby Vautrin (Hermit) |
on Feb 16, 2004 at 23:12 UTC ( #329477=perlquestion: print w/replies, xml ) | Need Help?? |
Vautrin has asked for the wisdom of the Perl Monks concerning the following question: I am creating a server that needs to take the following steps in the parent thread:
The problem I am having is that IO::Socket::accept blocks, so it will always return true. That is to say, if I call it, the program will "pause" until a client connects (even with autoflush true). I want to test whether or not there is anybody looking to connect before accepting a connection. Is this possible? I've googled and read every POD I can find on Sockets and IPC and still can't seem to find a suitable function. Many thanks in advance, Vautrin Want to support the EFF and FSF by buying cool stuff? Click here.
Back to
Seekers of Perl Wisdom
|
|