All pastes #748578 Raw Edit

Miscellany

public text v1 · immutable
#748578 ·published 2007-10-24 22:27 UTC
rendered paste body
class chkReply(threading.Thread):
    def __init__ (self,reply):
        threading.Thread.__init__(self)
        self.reply = reply
    def run(self):
        #print "waiting for " + strtohex(self.reply)
        data2 = ""
        while data2 != self.reply:
            data2 = s.recv(4096)
            #print "[" + strtohex(data2) + "]"
        print "reply OK"
        self.reply = ""
        global wait
        wait = 0