示例#1
0
def update(s):
    global b
    while True:
        tmp = get_blobs()
        if tmp:
            with lock:
                b = tmp
示例#2
0
文件: comm.py 项目: hbradlow/autocar
 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))
示例#3
0
文件: twist.py 项目: hbradlow/autocar
 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)
示例#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