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
|
|---|