The SSDP Server sends and receives (parses) SSDP requests.
More...
#include <SSDPServer.h>
|
| void | msearchRequestReceived (const QString &target, const QString &mx, const QString address, const quint16 &port) |
| | Emits whenever a new SSDP search "man : ssdp:discover" is received along with the service type. More...
|
| |
|
| | SSDPServer (QObject *parent=nullptr) |
| | Construct the server, listen on default ssdp address/port with multicast. More...
|
| |
|
void | initServer () |
| | Prepare server after thread start.
|
| |
| bool | start () |
| | Start SSDP. More...
|
| |
|
void | stop () |
| | Stop SSDP.
|
| |
| void | sendMSearchResponse (const QString &st, const QString &senderIp, const quint16 &senderPort) |
| | Send an answer to mSearch requester. More...
|
| |
| void | sendByeBye (const QString &st) |
| | Send ByeBye notification (on SSDP stop) (repeated 3 times) More...
|
| |
| void | sendAlive (const QString &st) |
| | Send a NOTIFY msg on SSDP startup to notify our presence (repeated 3 times) More...
|
| |
| void | sendUpdate (const QString &st) |
| | Send a NOTIFY msg as ssdp:update to notify about changes. More...
|
| |
| void | setDescriptionAddress (const QString &addr) |
| | Overwrite description address. More...
|
| |
|
void | setFlatBufPort (const quint16 &port) |
| | set new flatbuffer server port
|
| |
The SSDP Server sends and receives (parses) SSDP requests.
§ SSDPServer()
| SSDPServer::SSDPServer |
( |
QObject * |
parent = nullptr | ) |
|
Construct the server, listen on default ssdp address/port with multicast.
- Parameters
-
§ msearchRequestReceived
| void SSDPServer::msearchRequestReceived |
( |
const QString & |
target, |
|
|
const QString & |
mx, |
|
|
const QString |
address, |
|
|
const quint16 & |
port |
|
) |
| |
|
signal |
Emits whenever a new SSDP search "man : ssdp:discover" is received along with the service type.
- Parameters
-
| target | The ST service type |
| mx | Answer with delay in s |
| address | The ip of the caller |
| port | The port of the caller |
§ sendAlive()
| void SSDPServer::sendAlive |
( |
const QString & |
st | ) |
|
Send a NOTIFY msg on SSDP startup to notify our presence (repeated 3 times)
- Parameters
-
§ sendByeBye()
| void SSDPServer::sendByeBye |
( |
const QString & |
st | ) |
|
Send ByeBye notification (on SSDP stop) (repeated 3 times)
- Parameters
-
§ sendMSearchResponse()
| void SSDPServer::sendMSearchResponse |
( |
const QString & |
st, |
|
|
const QString & |
senderIp, |
|
|
const quint16 & |
senderPort |
|
) |
| |
Send an answer to mSearch requester.
- Parameters
-
| st | the searchTarget |
| senderIp | Ip address of the sender |
| senderPort | The port of the sender |
§ sendUpdate()
| void SSDPServer::sendUpdate |
( |
const QString & |
st | ) |
|
Send a NOTIFY msg as ssdp:update to notify about changes.
- Parameters
-
§ setDescriptionAddress()
| void SSDPServer::setDescriptionAddress |
( |
const QString & |
addr | ) |
|
|
inline |
Overwrite description address.
- Parameters
-
§ start()
| bool SSDPServer::start |
( |
| ) |
|
Start SSDP.
- Returns
- false if already running or bind failure
The documentation for this class was generated from the following files: