Test for socket existence