Search for SSDP sessions, used by standalone capture binaries.
More...
#include <SSDPDiscover.h>
|
|
| SSDPDiscover (QObject *parent=nullptr) |
| |
| void | searchForService (const QString &st="urn:hyperion-project.org:device:basic:1") |
| | Search for specified service, results will be returned by signal newService(). More...
|
| |
| const QString | getFirstService (const searchType &type=STY_WEBSERVER, const QString &st="urn:hyperion-project.org:device:basic:1", const int &timeout_ms=3000) |
| | Search for specified searchTarget, the method will block until a server has been found or a timeout happend. More...
|
| |
Search for SSDP sessions, used by standalone capture binaries.
§ getFirstService()
| const QString SSDPDiscover::getFirstService |
( |
const searchType & |
type = STY_WEBSERVER, |
|
|
const QString & |
st = "urn:hyperion-project.org:device:basic:1", |
|
|
const int & |
timeout_ms = 3000 |
|
) |
| |
Search for specified searchTarget, the method will block until a server has been found or a timeout happend.
- Parameters
-
| type | The address type one of struct searchType |
| st | The service to search for |
| timeout_ms | The timeout in ms |
- Returns
- The address+port of webserver or empty if timed out
§ newService
| void SSDPDiscover::newService |
( |
const QString |
webServer | ) |
|
|
signal |
Emits whenever a new service has ben found, search started with searchForService()
- Parameters
-
| webServer | The address+port of webserver "192.168.0.10:8090" |
§ searchForService()
| void SSDPDiscover::searchForService |
( |
const QString & |
st = "urn:hyperion-project.org:device:basic:1" | ) |
|
Search for specified service, results will be returned by signal newService().
Calling this method again will reset all found usns and search again
- Parameters
-
| st | The service to search for |
The documentation for this class was generated from the following files: