def create_PP_handler(self, conn, id_pp): key_ = str(id_pp) + "_pp" handler = Handler(self, conn, cnf.type_receivers['pp'], id_pp) # тип возвращается функцией аутотификации self.list_handlers[key_] = handler handler.start()
def create_client_handler(self, conn, id_client): key_ = "client_" + str(id_client) handler = Handler(self, conn, cnf.type_receivers['client'], id_client) # тип возвращается функцией аутотификации self.list_handlers[key_] = handler handler.start()