MythTV  master
mythudplistener.h
Go to the documentation of this file.
1 #ifndef MYTHUDPLISTENER_H
2 #define MYTHUDPLISTENER_H
3 
4 #include <QObject>
5 
6 #include "serverpool.h"
7 
8 class QByteArray;
9 class QUdpSocket;
10 class QDomElement;
11 
12 class MythUDPListener : public QObject
13 {
14  Q_OBJECT
15 
16  public:
18 
19  void Enable(void);
20  void Disable(void);
21 
22  public slots:
23  virtual void deleteLater(void);
24 
25  private slots:
26  static void Process(const QByteArray &buf, const QHostAddress& sender,
27  quint16 senderPort);
28 
29  private:
30  ~MythUDPListener(void) override { Disable(); }
31 
32  void TeardownAll(void) { Disable(); }
33 
34  private:
36 };
37 
38 #endif // MYTHUDPLISTENER_H
MythUDPListener::Process
static void Process(const QByteArray &buf, const QHostAddress &sender, quint16 senderPort)
Definition: mythudplistener.cpp:62
ServerPool
Manages a collection of sockets listening on different ports.
Definition: serverpool.h:60
slots
unsigned int slots[4]
Definition: element.cpp:38
MythUDPListener::~MythUDPListener
~MythUDPListener(void) override
Definition: mythudplistener.h:30
MythUDPListener::Enable
void Enable(void)
Definition: mythudplistener.cpp:26
MythUDPListener
Definition: mythudplistener.h:13
MythUDPListener::MythUDPListener
MythUDPListener()
Definition: mythudplistener.cpp:14
MythUDPListener::Disable
void Disable(void)
Definition: mythudplistener.cpp:50
MythUDPListener::TeardownAll
void TeardownAll(void)
Definition: mythudplistener.h:32
serverpool.h
MythUDPListener::m_socketPool
ServerPool * m_socketPool
Definition: mythudplistener.h:35
MythUDPListener::deleteLater
virtual void deleteLater(void)
Definition: mythudplistener.cpp:19