Builder ClassClass Builder is declared in class QKnxNetIpDisconnectResponseProxy.
The QKnxNetIpDisconnectResponseProxy::Builder class provides the means to read a KNXnet/IP disconnection response from the generic QKnxNetIpFrame class and to create a disconnection response frame based on the information. More...
|Builder &||setChannelId(quint8 channelId)|
|Builder &||setStatus(QKnxNetIp::Error status)|
A KNXnet/IP device terminates a data channel connection by sending a disconnection request to its communication partner's control endpoint. The KNXnet/IP device receiving the disconnection request acknowledges the operation with a KNXnet/IP disconnection response frame, which signals the final termination of a communication channel.
The common way to create a disconnection response is:
auto frame = QKnxNetIpDisconnectResponseProxy::builder() .setChannelId(200) .setStatus(QKnx::NetIp::Error::None) .create();
Member Function Documentation
QKnxNetIpFrame Builder::create() const
Creates and returns a KNXnet/IP disconnection response frame.
Note: The returned frame may be invalid depending on the values used during setup.
See also isValid().
Sets the ID of the communication channel between the KNXnet/IP client and server to channelId and returns a reference to the builder.
Builder &Builder::setStatus(QKnxNetIp::Error status)
Sets the status of the communication channel between the KNXnet/IP client and server to status 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.