Function listening: socket is listening