Thanks for the insight Trent. On Wed, Dec 10, 2008 at 12:08 AM, Trent Lloyd <[EMAIL PROTECTED]> wrote: > Hi Gaspard, > On 10/12/2008, at 6:34 AM, Gaspard Bucher wrote: > >> Hi list ! >> >> I'm building an open source tool for distributed multimedia computing >> and am using osc (open sound control) between "planets" (processors) >> and "satellites" (interface, controller). I want to use zeroconf but >> would like to keep my code as portable as possible (embed/Linux/Mac os >> X/Windows). >> >> What is the best road for this ? >> >> Any "general" header that could be used everywhere ? >> >> Thanks for your help. > > Not really.. you have 2 main implementations - avahi, > bonjour(mDNSResponder) > > both are available on many platforms.. some for example avahi is not > available on windows but mDNSResponder is.. but neither is installed > by default or even commonly. > > avahi is much more common on linux, mDNSResponder is on osx.. etc. > > the only common library i know between the two is I think KDE's mDNS > interface which has an avahi plugin and mDNSResponder plugin but i > have no idea what the state of that is and I believe it is quite tied > to KDE libraries. > > I would love to promote using Avahi API natively but if you wrote for > mDNSResponder - Avahi has a compatibility library to use Avahi with > the same API calls.. but it is a bit ugly to rely on it rather than > using it for existing programs. >
So my guess is that I will wrap all this into a header with "HAS_AVAHI" and "HAS_BONJOUR" ifdefs. I'll try to use the more open API (avahi) and try to translate these into Bonjour calls. Gaspard _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
