Works like a charm! Thank you oh mighty monks!
In reply to Re^2: Checking if a non-blocking socket is active by bucz in thread Checking if a non-blocking socket is active by bucz