[Development] API review for a new QDnsResolver class

Thiago Macieira thiago.macieira at intel.com
Fri Nov 4 11:05:44 CET 2011


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.


-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111104/e82626fe/attachment.sig>


More information about the Development mailing list