[avahi] Resolve multiple IP4 Addresses
Daniel Wynne
daniel.wynne at mobotix.com
Thu May 7 07:09:30 PDT 2009
ok...
...this is the call I make in the ServiceResolverCallback:
...
avahi_record_browser_new (
client,
AVAHI_IF_UNSPEC,
AVAHI_PROTO_UNSPEC,
name,
AVAHI_DNS_CLASS_IN,
AVAHI_DNS_TYPE_HINFO,
AVAHI_LOOKUP_USE_MULTICAST,
SAvahiRecordBrowser_callback,
client ) ...
The Callback of the RecordBrowser always goes into state "CACHE
EXHAUSTED".
In which format does "name" has to be? A little more documentation would
be helpful ;-)
After we succeeded in this, I owe you a beer at least, I think... ;-)
Daniel
On Thu, 2009-05-07 at 15:00 +0200, Lennart Poettering wrote:
> On Thu, 07.05.09 09:14, Daniel Wynne (daniel.wynne at mobotix.com) wrote:
>
> >
> > Since the documentation in this issue is a little rare I wondered where
> > to use the RecordBrowser. Does it replace the ServiceBrowser or can I
> > use it inside the ServiceBrowserCallback to Browse the different service
> > records.
>
> If all you want know are the raw adress A/AAAA records then all you
> need to do is use a ServiceBrowser/ServiceResolver to get most of the
> data of the servcies and then resolve the hostname manually with
> RecordBrowser.
>
> It might be a good idea to read the DNS-SD spec before you do this.
>
> > Please excuse my nescience, but Im pretty new to this.
> > Or it might be, that I am completely wrong. In this case you should
> > blame my childish naivety ;-)
>
> And again, if you feel you need to use this it is very likely that you
> are misusing mDNS and make assumptions you shouldn't make or try to
> use mDNS for purposes it was not designed for.
>
> Lennart
>
More information about the avahi
mailing list