コード例 #1
0
ファイル: spi.py プロジェクト: anly2/raspberry-spi
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"
コード例 #2
0
ファイル: server.py プロジェクト: trentonstrong/easymud
 def lineReceived(self, line):
     logging.debug("DEBUG: lineReceived called with %s" % line)
     dispatch(self.session, line.strip())
コード例 #3
0
ファイル: server.py プロジェクト: trentonstrong/easymud
 def on_message(self, message):
     dispatch(self.session, message.strip())