Builder Class

class QKnxNetIpDescriptionRequestProxy ::Builder

The QKnxNetIpDescriptionRequestProxy::Builder class provides the means to create a KNXnet/IP description request frame. 更多...

公共函数

QKnxNetIpFrame create () const
Builder & setControlEndpoint (const QKnxNetIpHpai & hpai )

详细描述

After discovering a KNXnet/IP server, the KNXnet/IP client sends a description request through a unicast or point-to-point connection to all control endpoints of the server.

In most programs, this class will not be used directly. Instead, the QKnxNetIpServerDescriptionAgent and QKnxNetIpServerInfo are provided to check that the server supports the requested connection type and options.

The common way to create a a search response is:

auto netIpFrame = QKnxNetIpDescriptionRequestProxy::builder()
    .setControlEndpoint(QKnxNetIpHpaiProxy::builder()
        .setHostAddress(QHostAddress::LocalHost)
        .setPort(3671).create())
    .create();
					

成员函数文档编制

QKnxNetIpFrame Builder:: create () const

Creates and returns a KNXnet/IP description request frame.

注意: The returned frame may be invalid depending on the values used during setup.

另请参阅 isValid ().

Builder &Builder:: setControlEndpoint (const QKnxNetIpHpai & hpai )

Sets the control endpoint of the KNXnet/IP client to hpai and returns a reference to the builder.