[bind10-dev] DNS message API: resource data classes

Francis Dupont fdupont at isc.org
Mon Aug 17 15:02:37 UTC 2009


The fromText() as constructor has two drawbacks:
 - it collides with a fromWire() as constructor
 - it is less easier to call than a class/static method
so IMHO we could keep it but should add fromText() and fromWire()
class/static methods (usually class methods but static methods in C++).
(cf http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.8)

And we need a class+type -> fromText/Wire() table to replace
the dnspython get_rdata_class(). BTW we need the rdaraclass ANY too.

Francis_Dupont at isc.org



More information about the bind10-dev mailing list