Ejemplo n.º 1
0
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"
Ejemplo n.º 2
0
 def lineReceived(self, line):
     logging.debug("DEBUG: lineReceived called with %s" % line)
     dispatch(self.session, line.strip())
Ejemplo n.º 3
0
 def on_message(self, message):
     dispatch(self.session, message.strip())