Method listen() in socket server