pcp
[Top] [All Lists]

First Cut at Avahi Support for PCP Servers

To: PCP <pcp@xxxxxxxxxxx>
Subject: First Cut at Avahi Support for PCP Servers
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Sun, 06 Oct 2013 18:07:56 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
Hi All,

I wanted to run this past you all for comments before committing or pushing anything. It's code that enables PCP server's to announce themselves over the local network using Avahi, if available.

o Most of the new code is in the file avahi.c which would be part of libpcp (src/libpcp/src/avahi.c). o This code is accessed via the new API functions __pmServerAdvertisePresence() and __pmServerUnadvertisePresence(). o The Avhahi code is compiled out if the necessary Avahi headers/libraries are not available.
o As en example, in the patch, the new API functions are called from PMCD.

As it stands, this code is a working prototype. Let me know if this is headed in the right direction. Also any help with the autoconf/spec stuff is always appreciated.

Thanks,
Dave

Attachment: pcp-avahi.patch.txt
Description: Text document

Attachment: avahi.c
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>