QMdnsEngine  0.1.0
Multicast DNS library for Qt applications
Signals | Public Member Functions | List of all members
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. More...
 

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;
});

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: