QKnxNetIpRoutingIndicationProxy Class

The QKnxNetIpRoutingIndicationProxy class provides the means to read a routing indication from the generic QKnxNetIpFrame class and to create a KNXnet/IP frame based on the information. More...

Header: #include <QKnxNetIpRoutingIndicationProxy>
qmake: QT += knx

Public Types

class Builder

Public Functions

QKnxNetIpRoutingIndicationProxy(const QKnxNetIpFrame &frame)
bool isValid() const

Static Public Members

QKnxNetIpRoutingIndicationProxy::Builder builder()

Detailed Description

The QKnxNetIpRoutingIndicationProxy class provides the means to read a routing indication from the generic QKnxNetIpFrame class and to create a KNXnet/IP frame based on the information.

A routing indication is sent by a KNXnet/IP router or device to transmit KNX link layer frames over IP networks.

The following code sample illustrates how to read the routing indication information sent by a KNXnet/IP router or device:

auto netIpFrame = QKnxNetIpFrame::fromBytes(...);

const QKnxNetIpRoutingIndicationProxy routingIndication(netIpFrame);
if (!routingIndication.isValid())
    return;

auto linkFrame = routingIndication.linkLayerFrame();

See also builder(), QKnxNetIpRoutingLostMessageProxy, QKnxNetIpRoutingBusyProxy, and Qt KNXnet/IP Connection Classes.

Member Function Documentation

QKnxNetIpRoutingIndicationProxy::QKnxNetIpRoutingIndicationProxy(const QKnxNetIpFrame &frame)

Constructs a proxy object to read the routing indication information carried by the specified KNXnet/IP frame frame.

[static] QKnxNetIpRoutingIndicationProxy::Builder QKnxNetIpRoutingIndicationProxy::builder()

Returns a builder object to create a KNXnet/IP routing indication frame.

bool QKnxNetIpRoutingIndicationProxy::isValid() const

Returns true if the frame contains initialized values and is in itself valid, otherwise returns false. A valid KNXnet/IP frame consists of at least a valid header and a size in bytes corresponding to the total size of the KNXnet/IP frame header.

See also QKnxNetIpFrameHeader::totalSize().

© 2018 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.