You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class ServiceBrowser(_ServiceBrowserBase, threading.Thread):
"""Used to browse for a service of a specific type.
The listener object will have its add_service() and
remove_service() methods called when this browser
discovers changes in the services availability."""
def __init__(
self,
zc: 'Zeroconf',
type_: Union[str, list],
handlers: Optional[Union['ServiceListener', List[Callable[..., None]]]] = None,
listener: Optional['ServiceListener'] = None,
addr: Optional[str] = None,
port: int = _MDNS_PORT,
delay: int = _BROWSER_TIME,
) -> None:
threading.Thread.__init__(self)
super().__init__(zc, type_, handlers=handlers, listener=listener, addr=addr, port=port, delay=delay)
self.daemon = True
self.start()
self.name = "zeroconf-ServiceBrowser-%s-%s" % (
'-'.join([type_[:-7] for type_ in self.types]),
getattr(self, 'native_id', self.ident),
)
We can already set an addr and port for a ServiceBrowser but there is no way to tell it to ask QU questions.
Activity
bdraco commentedon Jun 18, 2021
We can already set an addr and port for a ServiceBrowser but there is no way to tell it to ask QU questions.
Maybe a
unicast= Truebdraco commentedon Jun 19, 2021
ServiceInfoneeds aunicastproperty.ServiceBrowseractually doesn'tbdraco commentedon Jun 20, 2021
I think we need a
QuestionType.QU, QuestionType.QMenum for both since we may want to force a ServiceBrowser or ServiceInfo to send QU questions