|
Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
|
#include "serverdiscovery.h"
Inheritance diagram for ServerDiscovery:
Collaboration diagram for ServerDiscovery:Public Types | |
| enum | ErrorType { ErrorType::InvalidIpList, ErrorType::InvalidHash } |
Signals | |
| void | serverDetected (const QString &host, const quint16 port, const QByteArray &sessionName, const QByteArray &certHash, bool autoConnect) |
| void | error (ErrorType e, int count) |
Public Member Functions | |
| ServerDiscovery (QObject *parent=nullptr) | |
| Ctor. More... | |
| ~ServerDiscovery () override | |
| Dtor. More... | |
| void | start (const QByteArray &sessionName, const QString &mgrIP) |
| start More... | |
| void | stop () |
| stop More... | |
| bool | isActive () |
Private Slots | |
| void | doDiscovery () |
| ConnectWindow::doDiscovery. More... | |
| void | onUdpReadyRead () |
| Handle incoming service discovery packets. More... | |
Private Attributes | |
| QTimer | _discoveryTimer |
| const int | _minDiscoveryInterval |
| const int | _maxDiscoveryInterval |
| int | _hashErrorCount |
| int | _ipErrorCount |
| QByteArray | _nameBytes |
| QByteArray | _salt2 |
| QUdpSocket | _discoverySocket |
| NetworkMessage | _packet |
| QHostAddress | _mgrIP |
Static Private Attributes | |
| static const int | UDPBUFSIZ = 9000 |
| static const int | SALT_LEN = 18 |
Definition at line 9 of file serverdiscovery.h.
|
strong |
| Enumerator | |
|---|---|
| InvalidIpList | |
| InvalidHash | |
Definition at line 14 of file serverdiscovery.h.
|
explicit |
|
overridedefault |
Dtor.
|
privateslot |
ConnectWindow::doDiscovery.
Definition at line 88 of file serverdiscovery.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
inline |
|
privateslot |
Handle incoming service discovery packets.
Definition at line 137 of file serverdiscovery.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:| void ServerDiscovery::start | ( | const QByteArray & | sessionName, |
| const QString & | mgrIP | ||
| ) |
start
Definition at line 47 of file serverdiscovery.cpp.
Here is the caller graph for this function:| void ServerDiscovery::stop | ( | ) |
stop
Definition at line 74 of file serverdiscovery.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 35 of file serverdiscovery.h.
|
private |
Definition at line 28 of file serverdiscovery.h.
|
private |
Definition at line 31 of file serverdiscovery.h.
|
private |
Definition at line 32 of file serverdiscovery.h.
|
private |
Definition at line 30 of file serverdiscovery.h.
|
private |
Definition at line 38 of file serverdiscovery.h.
|
private |
Definition at line 29 of file serverdiscovery.h.
|
private |
Definition at line 33 of file serverdiscovery.h.
|
private |
Definition at line 36 of file serverdiscovery.h.
|
private |
Definition at line 34 of file serverdiscovery.h.
|
staticprivate |
Definition at line 41 of file serverdiscovery.h.
|
staticprivate |
Definition at line 40 of file serverdiscovery.h.
1.8.8