in reply to Can I timeout an accept call?

If you are on *nix based system you have alarm and $SIG{ALRM} (no alarm on Win32). I do not know if this would be the best solution - I have not done socket programming for 4 years.

grep
Just me, the boy and these two monks, no questions asked.