Exemplo n.º 1
0
    def __init__(self):
        self._storage = None

        super(Service, self).__init__(
            self.service_name,
            cfg.CONF['service:mdns'].topic,
            threads=cfg.CONF['service:mdns'].threads,
        )
        self.override_endpoints(
            [notify.NotifyEndpoint(self.tg),
             xfr.XfrEndpoint(self.tg)])

        self.dns_service = service.DNSService(
            self.dns_application,
            self.tg,
            cfg.CONF['service:mdns'].listen,
            cfg.CONF['service:mdns'].tcp_backlog,
            cfg.CONF['service:mdns'].tcp_recv_timeout,
        )
Exemplo n.º 2
0
 def _rpc_endpoints(self):
     return [notify.NotifyEndpoint(self.tg), xfr.XfrEndpoint(self.tg)]