avahi

dbus_bus_request_name (): Connections are not allowed to own the service

ε祈祈猫儿з 提交于 2019-11-30 21:48:50
问题 I built a root filesystem on arm. It should run dbus-daemon and avahi-daemon, but when I try to run avahi-daemon $ dbus-daemon --system $ avahi-daemon I get this message: Found user 'avahi' (UID 4) and group 'avahi' (GID 4). Successfully dropped root privileges. avahi-daemon 0.6.28 starting up. WARNING: No NSS support for mDNS detected, consider installing nss-mdns! dbus_bus_request_name(): Connection ":1.0" is not allowed to own the service "org.freedesktop.Avahi" due to security policies in

How to develop an Avahi client/server

丶灬走出姿态 提交于 2019-11-29 21:49:39
I am trying to develop a client/server solution using python, the server must broadcast the service availability using Avahi. I am using the following code to publish the service: import avahi import dbus __all__ = ["ZeroconfService"] class ZeroconfService: """A simple class to publish a network service with zeroconf using avahi. """ def __init__(self, name, port, stype="_http._tcp", domain="", host="", text=""): self.name = name self.stype = stype self.domain = domain self.host = host self.port = port self.text = text def publish(self): bus = dbus.SystemBus() server = dbus.Interface( bus.get

Problems compiling avahi into Android NDK project

风流意气都作罢 提交于 2019-11-29 12:38:58
Over the last few days I've been having a difficult time trying to build avahi into a static or shared library for use with an existing Android NDK project. We have a few games in the App and Play stores and my task is to get multiplayer working in the Android versions. Specifically the task involves replacing the Bonjour component so that these games can connect to each other via zeroconf. Research seemed to indicate that avahi is the lib that we're looking for, but at this point I'm open to anything that will work! I'm hoping that someone here can either help me get avahi compiling or