def _send_module_cls_name_thread_callback():
"""
Callback of send module class name thread.
For each module enabled, it send the name and mime types compatibles for the module.
It publish each two second.
"""
thread_id = currentThread().ident
while(Analyzer._is_send_module_cls_name_check):
for mod in Analyzer._modules:
body = "{}:{}:{}".format(mod,
",".join(Analyzer._modules[mod]['mime_type']['type'])
, ",".join(Analyzer._modules[mod]['mime_type']['notype'])
)
Queue.publish_queue("module_list",
body,
thread_id=thread_id)
time.sleep(2)
评论列表
文章目录