00001 #ifndef MYTHUDPLISTENER_H 00002 #define MYTHUDPLISTENER_H 00003 00004 #include <QObject> 00005 00006 #include "serverpool.h" 00007 00008 class QByteArray; 00009 class QUdpSocket; 00010 class QDomElement; 00011 00012 class MythUDPListener : public QObject 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 MythUDPListener(); 00018 00019 public slots: 00020 virtual void deleteLater(void); 00021 00022 private slots: 00023 void Process(const QByteArray &buf, QHostAddress sender, 00024 quint16 senderPort); 00025 00026 private: 00027 ~MythUDPListener(void) { TeardownAll(); } 00028 00029 void TeardownAll(void); 00030 00031 private: 00032 ServerPool *m_socketPool; 00033 }; 00034 00035 #endif // MYTHUDPLISTENER_H