ExtendedBuilder Class

Class ExtendedBuilder is declared in class QKnxNetIpSearchResponseProxy.

The QKnxNetIpSearchResponseProxy::ExtendedBuilder class provides the means to create a KNXnet/IP extended search response. More...

This class was introduced in Qt 5.12.

Public Functions

ExtendedBuilder(const ExtendedBuilder &other)
ExtendedBuilder &operator=(const ExtendedBuilder &other)
QKnxNetIpFrame create() const
ExtendedBuilder &setControlEndpoint(const QKnxNetIpHpai &hpai)
ExtendedBuilder &setDeviceHardware(const QKnxNetIpDib &ddib)
ExtendedBuilder &setOptionalDibs(const QSet<QKnxNetIpDib> &dibs)
ExtendedBuilder &setSupportedFamilies(const QKnxNetIpDib &sdib)

Detailed Description

The KNXnet/IP server sends the extended search response frame as an answer to a received extended search request frame. It is addressed to the KNXnet/IP client’s discovery endpoint using the host address protocol information (HPAI) included in the received extended search request frame. The HPAI of the KNXnet/IP server’s own control endpoint is carried in the KNXnet/IP body of the extended search response frame along with the description of the device hardware and the supported service families. If the KNXnet/IP server supports more than one KNX connection, the KNXnet/IP server announces each of its own control endpoints in a single extended search response frame. KNXnet/IP servers supporting TCP only report the UDP address of their control endpoint in the extended search response frame. The KNXnet/IP server reports the data information blocks (DIBs) in the response in any order. Each DIB is present only once in the response.

The common way to create an extended search response is:

QKnxNetIpHpai controlEndpoint;
QKnxNetIpDib deviceHardware, supportedFamillies;

QSet<QKnxNetIpDib> optDibs = ...;

auto netIpFrame = QKnxNetIpSearchResponseProxy::extendedBuilder()

See also QKnxNetIpSearchResponseProxy::Builder, QKnxNetIpHpaiProxy::Builder, QKnxNetIpDeviceDibProxy::Builder, and QKnxNetIpServiceFamiliesDibProxy::Builder.

Member Function Documentation

ExtendedBuilder::ExtendedBuilder(const ExtendedBuilder &other)

Constructs a copy of other.


Creates an extended search response builder.

ExtendedBuilder &ExtendedBuilder::operator=(const ExtendedBuilder &other)

Assigns other to this builder.


Destroys an extended search response builder.

QKnxNetIpFrame ExtendedBuilder::create() const

Creates and returns a KNXnet/IP extended search response frame.

Note: The returned frame may be invalid depending on the values used during setup. For the frame to be valid, at least a device hardware information block (DIB) and a supported families DIB must be set in the builder.

See also isValid().

ExtendedBuilder &ExtendedBuilder::setControlEndpoint(const QKnxNetIpHpai &hpai)

Sets the control endpoint of the KNXnet/IP client to hpai and returns a reference to the builder.

ExtendedBuilder &ExtendedBuilder::setDeviceHardware(const QKnxNetIpDib &ddib)

Sets the device hardware device information block (DIB) to ddib and returns a reference to the builder.

ExtendedBuilder &ExtendedBuilder::setOptionalDibs(const QSet<QKnxNetIpDib> &dibs)

Sets the optional KNXnet/IP server device information block (DIB) structure to dibs and returns a reference to the builder.

Note: The device information blocks dibs argument may not contain the mandatory device hardware DIB and supported families DIB. To set the mandatory DIBs use the dedicated setter functions instead.

See also setDeviceHardware() and setSupportedFamilies().

ExtendedBuilder &ExtendedBuilder::setSupportedFamilies(const QKnxNetIpDib &sdib)

Sets the supported families information block (DIB) to sdib and returns a reference to the builder.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.