This talk about QtConcurrent has me wondering: do we need an asynchronous API at all?
The underlying system calls are blocking anyway, and we could maybe have a very simple API like: QDnsInfo QDnsInfo::lookup(QDnsInfo::RecordType type, const QString &domain) And if you want asynchronous calls you would use QtConcurrent::run(). An open question: can you use QtConcurrent::run() on a class static method? Benefits of this DNS API: - QDnsInfo is just a data container (using QSharedData) for an answer, it does not need to be a QObject and we have very simple ownership semantics - the DNS API is not dependent on QtConcurrent, but using them together is straightforward Any thoughts? Jeremy _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development