def loop_executer(): from commands import dispatch print "Starting Executor thread..." global CLIENT_SOCKET while True: cmd = commands_queue.get(True); dispatch(CLIENT_SOCKET, cmd); commands_queue.task_done(); print "Task completed"
def lineReceived(self, line): logging.debug("DEBUG: lineReceived called with %s" % line) dispatch(self.session, line.strip())
def on_message(self, message): dispatch(self.session, message.strip())