pcp
[Top] [All Lists]

Re: [pcp] PCP Updates: Active Probing for __pmDiscoverServices() / pmfin

To: Dave Brolley <brolley@xxxxxxxxxx>
Subject: Re: [pcp] PCP Updates: Active Probing for __pmDiscoverServices() / pmfind
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 22 May 2014 20:05:49 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <537E1C12.4050207@xxxxxxxxxx>
References: <5373D0D2.5090902@xxxxxxxxxx> <537CC777.3040900@xxxxxxxxxx> <399575684.12526040.1400750511921.JavaMail.zimbra@xxxxxxxxxx> <537E1C12.4050207@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: 4zuEEN/dOReT0fuC7qalbSeJnLg3xA==
Thread-topic: PCP Updates: Active Probing for __pmDiscoverServices() / pmfind

----- Original Message -----
> On 05/22/2014 05:21 AM, Nathan Scott wrote:
> > ----- Original Message -----
> >> Thanks for the reviews and suggestions. I'm in the process of going
> >> though Nathan's comments and Frank's suggestion for an alternate
> >> implementation. I will be responding shortly.
> > No worries.  I followed through on my suggestion to add more than just
> > one service to the set, so we can start to iron out issues there and to
> > be sure the interfaces (& command) "fit" more than one OK ... could you
> > review latest dev, which adds pmproxy & pmwebd advertising, and tweaks
> > pmfind a bit? - that would be awesome, thanks.
> >
> I had a look. The diversification into additional services was handled
> as I had planned when originally designing the API.
> 
> The only problem I saw, and it was an existing problem, is that
> __pmAvahiDiscoverServices does not handle a NULL pointer passed in for
> 'service'. This is the indication to discover all supported services and
> it is used by pmfind when "all" is specified.

*nod* ... the only other half-issue-kinda-maybe thing was that there is no
way to enumerate the services - have to be hard-coded into pmfind for when
it runs in "everything" mode.  I think that's OK though, really - we don't
often add services so in practice it should be just fine.

cheers.

--
Nathan

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