BSocket::BSocket(QObject *parent) :ByteStream(parent) { d = new Private; #ifndef NO_NDNS connect(&d->ndns, SIGNAL(resultsReady()), SLOT(ndns_done())); #endif connect(&d->srv, SIGNAL(resultsReady()), SLOT(srv_done())); reset(); }
SrvResolver::SrvResolver(QObject *parent) :QObject(parent) { d = new Private; d->qdns = 0; #ifndef NO_NDNS connect(&d->ndns, SIGNAL(resultsReady()), SLOT(ndns_done())); #endif connect(&d->t, SIGNAL(timeout()), SLOT(t_timeout())); stop(); }
void SrvResolver::tryNext() { #ifndef NO_NDNS d->ndns.resolve(d->servers.first().name); #else d->qdns = new Q3Dns; connect(d->qdns, SIGNAL(resultsReady()), SLOT(ndns_done())); if(d->aaaa) d->qdns->setRecordType(Q3Dns::Aaaa); // IPv6 else d->qdns->setRecordType(Q3Dns::A); // IPv4 d->qdns->setLabel(d->servers.first().name); #endif }
SrvResolver::SrvResolver(QObject *parent) :QObject(parent) { d = new Private(this); d->nndns_busy = false; connect(&d->nndns, SIGNAL(resultsReady(const QList<XMPP::NameRecord> &)), SLOT(nndns_resultsReady(const QList<XMPP::NameRecord> &))); connect(&d->nndns, SIGNAL(error(XMPP::NameResolver::Error)), SLOT(nndns_error(XMPP::NameResolver::Error))); #ifndef NO_NDNS connect(&d->ndns, SIGNAL(resultsReady()), SLOT(ndns_done())); #endif connect(&d->t, SIGNAL(timeout()), SLOT(t_timeout())); stop(); }