WSDiscoveryClient is a low-level helper for sending and receiving WS-Discovery messages.
More...
#include <wsdiscoveryclient.h>
|
void | start (quint16 port=0) |
|
void | sendProbe (const QList< KDQName > &typeList, const QList< QUrl > &scopeList) |
|
void | sendResolve (const QString &endpointReference) |
|
WSDiscoveryClient is a low-level helper for sending and receiving WS-Discovery messages.
start() will bind to the network and start receveing messages. When a message is received, it will trigger the signals probeMatchReceived() and resolveMatchReceived(). You can send messages using sendProbe() and sendResolve().
- See also
- WSDiscoveryProbeJob for a more high level interface
◆ WSDiscoveryClient()
WSDiscoveryClient::WSDiscoveryClient |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ probeMatchReceived
Emitted when a WS-Discovery probe match message is received. When a single message is reveived with multiple matches, then multiple signals are emitted.
- Parameters
-
probeMatchService | The service as described in the match |
◆ resolveMatchReceived
Emitted when a WS-Discovery resolve match message is received.
- Parameters
-
probeMatchService | The service as described in the match |
◆ sendProbe
void WSDiscoveryClient::sendProbe |
( |
const QList< KDQName > & | typeList, |
|
|
const QList< QUrl > & | scopeList ) |
|
slot |
Send a WS-Discovery probe message. This will cause all devices in the network that match to typeList
and scopeList
to send a probeMatch back.
- Parameters
-
typeList | List of types that a device should match |
scopeList | List of scoped that a device should match |
◆ sendResolve
void WSDiscoveryClient::sendResolve |
( |
const QString & | endpointReference | ) |
|
|
slot |
Send a WS-Discovery resolve message. This will cause a specific device in the network to send a resolveMatch back.
- Parameters
-
endpointReference | The identifier of the device of interest |
◆ start
void WSDiscoveryClient::start |
( |
quint16 | port = 0 | ) |
|
|
slot |
Bind to the WS-Discovery network ports. After binding messages will be received. It binds on both IPv4 and IPv6.
- Parameters
-
port | the port to bind or 0 to pick a random port |
The documentation for this class was generated from the following file: