Re: DNS-SD support in gnome-vfs



On Fri, 2004-07-16 at 20:56, Murray Cumming wrote:
> Also, in GnomeVFSDNSSDResolveCallback:
> - Is text_raw ASCII or UTF-8?
> - Is text_raw_len the count of bytes, or the count of characters?

text_raw it the DNS record in raw form. Its not a c-string, but rather a
sequence of pascal-like strings. See the DNS-SD RFC for the details. For
the case of e.g. a c++ binding, consider it an opaque memory area with
length given in bytes. 

If you want the text record parsed, use the "text" hashtable.

Most other strings in the API are UTF-8 though (the DNS-SD RFC defines
them as such), except type, which needs to be one of the registered
types on http://www.dns-sd.org/ServiceTypes.html.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a maverick vegetarian sorceror whom everyone believes is mad. She's an 
elegant French-Canadian lawyer on the trail of a serial killer. They fight 
crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]