Example #1
0
 def __init__(self):
     
     # init loggging
     logger = Logger('dwgetd',2001, '127.0.0.1', True)
     logger.addStuff(self.__driver)
 
     dispatcher.connect(self.newSlave, signal = 'NEW_SLAVE', sender = 'masterMainThread')
     dispatcher.connect(self.delSlave, signal = 'DEL_SLAVE', sender = 'masterMainThread')
     dispatcher.connect(self.newDownload, signal = 'NEW_DOWNLOAD', sender = 'masterMainThread')
     dispatcher.connect(self.__reply, signal = 'REPLY_SOCKET', sender = 'masterMainThread')
     dispatcher.connect(self.listSlaves, signal = 'LIST_SLAVES', sender = 'masterMainThread')
     dispatcher.connect(self.listTasks, signal = 'LIST_TASKS', sender = 'masterMainThread')
     self.__thread = MainThread()
     self.__thread.start()