|qmake:||QT += knx|
|QKnxNetIpConnectResponseProxy(const QKnxNetIpFrame &frame)|
A connection response frame is sent by a KNXnet/IP server in response to a connection request received from a KNXnet/IP client. The connection response provides the status of the request. If the server accepted the request, the frame also contains the identifier and host address protocol information (HPAI) of the data endpoint that the server prepared for the communication channel.
Note: When using QKnxNetIpConnectResponseProxy, care must be taken to ensure that the referenced KNXnet/IP frame outlives the proxy on all code paths, lest the proxy ends up referencing deleted data.
The following code sample illustrates how to read the connection response information sent by a KNXnet/IP server:
Member Function Documentation
QKnxNetIpConnectResponseProxy::QKnxNetIpConnectResponseProxy(const QKnxNetIpFrame &frame)
Constructs a proxy object to read the connection response information carried by the specified KNXnet/IP frame frame.
[static] QKnxNetIpConnectResponseProxy::Builder QKnxNetIpConnectResponseProxy::builder()
Returns a builder object to create a KNXnet/IP connection response frame.
quint8 QKnxNetIpConnectResponseProxy::channelId() const
Returns the ID of the communication channel prepared by the KNXnet/IP server.
QKnxNetIpHpai QKnxNetIpConnectResponseProxy::dataEndpoint() const
Returns the data endpoint of the KNXnet/IP server.
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().
QKnxNetIpCrd QKnxNetIpConnectResponseProxy::responseData() const
Returns a connection response data (CRD) structure from the KNXnet/IP connection request frame.
Returns the status of the connection request received from a KNXnet/IP client.
See also QKnxNetIpConnectRequestProxy.
© 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.