pc88mxer, I gotta look into this more, as I'm not sure what this is doing. Is this checking for whether $hSocket is undef (see my other reply, regarding checking if accept has been called)? I'll plug this in, read up, and try. Not necessarily in that order. Thanks