Builder Classclass QKnxNetIpTunnelingAcknowledgeProxy::Builder
|Builder &||setChannelId(quint8 channelId)|
|Builder &||setSequenceNumber(quint8 sequenceNumber)|
|Builder &||setStatus(QKnxNetIp::Error status)|
A tunneling acknowledgment frame contains the ID and status of the communication channel between a KNXnet/IP client and server, as well as the sequence number of a tunneling request frame.
The server only processes frames with the expected sequence number or one less the expected sequence number. It discards frames with other sequence numbers and does not send a tunneling acknowledgment upon receiving them.
The common way to create a tunneling acknowledgment is:
auto netIpFrame = QKnxNetIpTunnelingAcknowledgeProxy::builder() .setChannelId(4) .setSequenceNumber(3) .setStatus(QKnx::NetIp::Error::None) .create()
If the KNXnet/IP client does not receive a tunneling acknowledgment within the timeout of one second or the status of a received acknowledgment frame indicates that errors occurred, the client repeats the tunneling request frame once with the same sequence number and then terminates the connection by sending a disconnection request, QKnxNetIpDisconnectRequestProxy, to the server's control endpoint.
Member Function Documentation
QKnxNetIpFrame Builder::create() const
Creates and returns a KNXnet/IP tunneling request 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 a KNXnet/IP client and server to channelId and returns a reference to the builder.
Sets the sequence number of a tunneling request frame to sequenceNumber and returns a reference to the builder.
Builder &Builder::setStatus(QKnxNetIp::Error status)
Sets the status of the communication channel between a KNXnet/IP client and server to status and returns a reference to the builder.
© 2021 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.