예제 #1
0
파일: server2.py 프로젝트: hbradlow/autocar
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
파일: server.py 프로젝트: hbradlow/autocar
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