示例#1
0
	def __init__(self, conn, address, serverid, lock, port=8081):
		JsonSocket.__init__(self, address, port, conn)
		threading.Thread.__init__(self)
		self.severid = serverid
		self.socket = conn
		self.lock = lock
		print("serverid: %d" % self.severid)
示例#2
0
	def __init__(self, clientid, command, address='127.0.0.1', port=8081):
		JsonSocket.__init__(self, address, port)
		threading.Thread.__init__(self)
		self.clientid = clientid
		self.command = command
		print("clientid: %d" %clientid)