[avahi] Resolve multiple IP4 Addresses
Lennart Poettering
lennart at poettering.net
Thu May 7 07:56:50 PDT 2009
On Thu, 07.05.09 16:09, Daniel Wynne (daniel.wynne at mobotix.com) wrote:
>
> ok...
>
> ...this is the call I make in the ServiceResolverCallback:
>
>
>
> ...
> avahi_record_browser_new (
> client,
> AVAHI_IF_UNSPEC,
You should specify the same interface you discovered via the service browser/resolver.
> AVAHI_PROTO_UNSPEC,
You should specify the same protocol you discovered via the service browser/resolver.
> name,
You should specify the same host name you found via the service resolver.
> AVAHI_DNS_CLASS_IN,
> AVAHI_DNS_TYPE_HINFO,
HINFO? I thought you were interested in the address records (i.e. A or AAAA).
> AVAHI_LOOKUP_USE_MULTICAST,
Leave that to the implementation, pass 0 here.
> The Callback of the RecordBrowser always goes into state "CACHE
> EXHAUSTED".
http://avahi.org/download/doxygen/defs_8h.html#f7ff3b95259b3441a282b87d82eebd87
Hey, read the docs, that's why I wrote them. They might not be
complete, but they do explain what CACHE EXHAUSTED means.
You'll get a couple of callbacks. If you don't care about CACHE
EXHAUSTED then ignore it.
> In which format does "name" has to be? A little more documentation would
> be helpful ;-)
Read the DNS-SD spec.
This is an API to lookup low-level RRs. The parameters are hence in
the format those low-level RRs use. i.e. fqdn.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
More information about the avahi
mailing list