hyperion.ng
Signals | Public Member Functions | List of all members
SSDPDiscover Class Reference

Search for SSDP sessions, used by standalone capture binaries. More...

#include <SSDPDiscover.h>

Inheritance diagram for SSDPDiscover:

Signals

void newService (const QString webServer)
 Emits whenever a new service has ben found, search started with searchForService() More...
 

Public Member Functions

 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...
 

Detailed Description

Search for SSDP sessions, used by standalone capture binaries.

Member Function Documentation

§ 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
typeThe address type one of struct searchType
stThe service to search for
timeout_msThe 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
webServerThe 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
stThe service to search for

The documentation for this class was generated from the following files: