[Development] API review for a new QDnsResolver class
Jeremy Lainé
jeremy.laine at m4x.org
Fri Nov 4 13:24:17 CET 2011
Le Nov 4, 2011 à 11:05 AM, Thiago Macieira a écrit :
> On Friday, 4 de November de 2011 10:36:29 Peter Hartmann wrote:
>> I am happy with having one QDnsReply class; I think we can get pretty
>> far with some special accessors for SRV and other records, and one
>> generic accessor for simple (QString) and unsupported cases. Then
>> whoever wants to read a currently unsupported response format needs to
>> parse the response string himself, which IMO is not that bad.
>> We can then in the future extend the class with more special accessors
>> if need be.
>
> There's no way to provide the unsupported formats in QString. It would need to
> be QByteArray and, even then, it's useless if it contains a compressed domain
> name.
>
Domain name expansion is handled for known fields, win32 does it itself as far as I know, and for unix I call dn_expand.
Jeremy
More information about the Development
mailing list