QKnxNetIpStructHeader Class

template <typename CodeType> class QKnxNetIpStructHeader

The QKnxNetIpStructHeader class is a KNXnet/IP structure header. More...

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

Public Functions

QKnxNetIpStructHeader(CodeType codeType, quint16 dataFieldSize)
QKnxNetIpStructHeader(CodeType codeType)
QKnxNetIpStructHeader()
~QKnxNetIpStructHeader()
QDebug operator<<(QDebug debug, const QKnxNetIpStructHeader<CodeType> &header)

Detailed Description

The first octet of the structure is the length of the structure and the second octet is an identifier that specifies the type of the structure.

If the structure's amount of data exceeds 252 octets, the first octet is 0xff and the next two octets contain the length as a 16 bit value. The fourth octet is then the identifier specifying the type of the structure.

See also Qt KNXnet/IP Connection Classes.

Member Function Documentation

QKnxNetIpStructHeader::QKnxNetIpStructHeader(CodeType codeType, quint16 dataFieldSize)

Constructs a valid header object and sets the KNXnet/IP structure identifier to codeType and the data size to dataFieldSize and updates the header size and total size accordingly.

See also isValid(), code(), setCode(), dataSize(), and setDataSize().

QKnxNetIpStructHeader::QKnxNetIpStructHeader(CodeType codeType)

Constructs a valid header object and sets the KNXnet/IP structure identifier to codeType.

See also isValid(), code(), and setCode().

QKnxNetIpStructHeader::QKnxNetIpStructHeader()

Constructs an empty invalid header object.

See also isNull() and isValid().

QKnxNetIpStructHeader::~QKnxNetIpStructHeader()

Destroys the header object and releases all allocated resources.

Related Non-Members

template <typename CodeType> QDebug operator<<(QDebug debug, const QKnxNetIpStructHeader<CodeType> &header)

Writes the KNXnet/IP structure header header to the debug stream.

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