Exemplo n.º 1
0
def update(s):
    global b
    while True:
        tmp = get_blobs()
        if tmp:
            with lock:
                b = tmp
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
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