def update(s): global b while True: tmp = get_blobs() if tmp: with lock: b = tmp
def handle_read(self): print "First" data = self.recv(8192) if data: while True: self.send("HERE\n") b = get_blobs() if b: self.send(str(b))
def connectionMade(self): self.factory.clients.append(self) print "clients are ", self.factory.clients while True: b = get_blobs() print b if b: s = str(b[0]) + "," + str(b[1]) print s self.message(s)
def update(s): global b while True: tmp = get_blobs() print tmp if tmp: """ for index,l in enumerate(tmp): l.append(index) """ with lock: b = tmp