8 #ifndef DISCOVERYLISTENER_H_
9 #define DISCOVERYLISTENER_H_
13 #include "../../shared/networkmessage.h"
15 #define SD_PACKET_TABLE_SIZE 20000
DiscoveryListener(QObject *parent)
DiscoveryListener::DiscoveryListener.
#define SD_PACKET_TABLE_SIZE
void timerEvent(QTimerEvent *event) override
Decrease packet counters per source IP in our "spam protection" table.
quint8 _packetCounter[SD_PACKET_TABLE_SIZE]
void onReadyRead()
Incoming UDP packet on service discovery port - handle.
~DiscoveryListener() override
DiscoveryListener::~DiscoveryListener.