1 #ifndef SERVERDISCOVERY_H
2 #define SERVERDISCOVERY_H
7 #include "../../shared/networkmessage.h"
23 void start(
const QByteArray& sessionName,
const QString& mgrIP);
44 void serverDetected(
const QString& host,
const quint16 port,
const QByteArray& sessionName,
const QByteArray& certHash,
bool autoConnect);
55 #endif // SERVERDISCOVERY_H
QUdpSocket _discoverySocket
ServerDiscovery(QObject *parent=nullptr)
Ctor.
void error(ErrorType e, int count)
const int _minDiscoveryInterval
void start(const QByteArray &sessionName, const QString &mgrIP)
start
const int _maxDiscoveryInterval
~ServerDiscovery() override
Dtor.
void onUdpReadyRead()
Handle incoming service discovery packets.
static const int SALT_LEN
static const int UDPBUFSIZ
void serverDetected(const QString &host, const quint16 port, const QByteArray &sessionName, const QByteArray &certHash, bool autoConnect)
void doDiscovery()
ConnectWindow::doDiscovery.