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:
31 
32  void TeardownAll(void) { Disable(); }
33 
34  private:
36 };
37 
38 #endif // MYTHUDPLISTENER_H
unsigned int slots[4]
Definition: element.c:38
static void Process(const QByteArray &buf, const QHostAddress &sender, quint16 senderPort)
virtual void deleteLater(void)
ServerPool * m_socketPool
Manages a collection of sockets listening on different ports.
Definition: serverpool.h:59
void TeardownAll(void)