コード例 #1
0
    def __init__(self, host, port, template, log_queue, docpath, snmp_port=161):
        self.host = host
        self.port = port
        self.docpath = docpath
        self.snmp_host = '127.0.0.1'
        self.snmp_port = snmp_port

        self.cmd_responder = CommandResponder(host, port, template, log_queue, docpath, self.snmp_host, self.snmp_port)
        self.cmd_responder.httpd.allow_reuse_address = True