示例#1
0
 def __init__(self, factory, registerMethod, startThreadMethod):
     """
     Initializes the thread's state
     Args:
         factory: The protocol factory that will build the connection's protocol.
         registerMethod: the method to register the new active connection.
         startThreadMethod: the method to start the new connection's incoming package
         thread.
     """
     BasicThread.__init__(self)
     self.__factory = factory
     self.__registerMethod = registerMethod
     self.__startThreadMethod = startThreadMethod
示例#2
0
 def __init__(self, factory, registerMethod, startThreadMethod):
     """
     Initializes the thread's state
     Args:
         factory: The protocol factory that will build the connection's protocol.
         registerMethod: the method to register the new active connection.
         startThreadMethod: the method to start the new connection's incoming package
         thread.
     """
     BasicThread.__init__(self)        
     self.__factory = factory
     self.__registerMethod = registerMethod
     self.__startThreadMethod = startThreadMethod
 def __init__(self, updateHandler, sleepTime):
     BasicThread.__init__(self)
     self.__handler = updateHandler
     self.__sleepTime = sleepTime
 def __init__(self, updateHandler, sleepTime):
     BasicThread.__init__(self)
     self.__handler = updateHandler
     self.__sleepTime = sleepTime