Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
DiscoveryListener Class Reference

#include "discoverylistener.h"

+ Inheritance diagram for DiscoveryListener:
+ Collaboration diagram for DiscoveryListener:

Public Member Functions

 DiscoveryListener (QObject *parent)
 DiscoveryListener::DiscoveryListener. More...
 
 ~DiscoveryListener () override
 DiscoveryListener::~DiscoveryListener. More...
 

Protected Member Functions

void timerEvent (QTimerEvent *event) override
 Decrease packet counters per source IP in our "spam protection" table. More...
 

Private Slots

void onReadyRead ()
 Incoming UDP packet on service discovery port - handle. More...
 

Private Attributes

QUdpSocket _socket
 
NetworkMessage _packet
 
int _counterResetPos {}
 
quint8 _packetCounter [SD_PACKET_TABLE_SIZE] {}
 

Detailed Description

Definition at line 19 of file discoverylistener.h.

Constructor & Destructor Documentation

DiscoveryListener::DiscoveryListener ( QObject parent)
explicit

DiscoveryListener::DiscoveryListener.

Definition at line 32 of file discoverylistener.cpp.

+ Here is the call graph for this function:

DiscoveryListener::~DiscoveryListener ( )
overridedefault

Member Function Documentation

void DiscoveryListener::onReadyRead ( )
privateslot

Incoming UDP packet on service discovery port - handle.

Definition at line 119 of file discoverylistener.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DiscoveryListener::timerEvent ( QTimerEvent *  event)
overrideprotected

Decrease packet counters per source IP in our "spam protection" table.

Parameters
event

Definition at line 99 of file discoverylistener.cpp.

Member Data Documentation

int DiscoveryListener::_counterResetPos {}
private

Definition at line 26 of file discoverylistener.h.

NetworkMessage DiscoveryListener::_packet
private

Definition at line 25 of file discoverylistener.h.

quint8 DiscoveryListener::_packetCounter[SD_PACKET_TABLE_SIZE] {}
private

Definition at line 28 of file discoverylistener.h.

QUdpSocket DiscoveryListener::_socket
private

Definition at line 24 of file discoverylistener.h.


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