def __init__(self, flooder, id):
        Process.__init__(self)
        self.id = id

        self.wait = flooder.wait
        self.running = True
        self.byteCount = 0
        self.socket = synmod.createSocket()

        if self.socket == -1:
            self.running = False

        print "initialized syn thread"
Пример #2
0
    def __init__(self, flooder, id):
        Process.__init__(self)
        self.id = id

        self.wait = flooder.wait
        self.running = True
        self.byteCount = 0
        self.socket = synmod.createSocket()

        if self.socket == -1:
            self.running = False

        log("initialized syn thread")
 def __setstate__(self, dict):
     self.__dict__.update(dict)
     self.socket = synmod.createSocket()
Пример #4
0
 def __setstate__(self, dict):
     self.__dict__.update(dict)
     self.socket = synmod.createSocket()