示例#1
0
 def __init__(self, compiler_info_cache, task_created_func, database_inserter,
         global_timer, update_ui):
     MessageProtocol.__init__(self)
     self.compiler_info_cache = compiler_info_cache
     self.task_created_func = task_created_func
     self.global_timer = global_timer
     self.update_ui = update_ui
     self.data = b''
     self.transport = None
     self.command_processor = None
     self.database_inserter = database_inserter
示例#2
0
 def protocol_factory(self):
     protocol = MessageProtocol()
     protocol.process_msg = self.process_msg
     return protocol
示例#3
0
 def __init__(self, runner):
     MessageProtocol.__init__(self)
     self.runner = runner