QMdnsEngine 0.2.1
Multicast DNS library for Qt applications
Loading...
Searching...
No Matches
QMdnsEngine::Resolver Class Reference

Resolver for services More...

#include <qmdnsengine/resolver.h>

Inheritance diagram for QMdnsEngine::Resolver:

Signals

void resolved (const QHostAddress &address)
 Indicate that the host resolved to an address.

Public Member Functions

 Resolver (AbstractServer *server, const QByteArray &name, Cache *cache=0, QObject *parent=0)
 Create a new resolver.

Detailed Description

When Browser indicates that a new service has been found, it becomes necessary to resolve the service in order to connect to it. This class serves that role. A Cache can optionally be provided to speed up the resolving process.

For example, assuming that record is a SRV record:

QMdnsEngine::Resolver resolver(&server, record.target());
connect(&resolver, &QMdnsEngine::Resolver::resolved, [](const QHostAddress &address) {
qDebug() << "Address:" << address;
});
Resolver for services
Definition resolver.h:59
void resolved(const QHostAddress &address)
Indicate that the host resolved to an address.

Member Function Documentation

◆ resolved

void QMdnsEngine::Resolver::resolved ( const QHostAddress & address)
signal
Parameters
addressservice address

This signal will be emitted once for each resolved address. For example, if a host provides both A and AAAA records, this signal will be emitted twice.


The documentation for this class was generated from the following file: