assert that it is a socket.