def listen_threaded(cls, port, callback):
        """ Starts a new thread listening to the given port """
        thread = Thread(target=cls.__listen_forever, args=(port, callback), name="NC-ListenForever")
        thread.setDaemon(True)
        thread.start()
        return thread
 Starts a new thread listening to the given port 
metadrive/render_pipeline/rpcore/util/network_communication.py