QTfrontend/net/netudpserver.h
changeset 6616 f77bb02b669f
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    25 
    25 
    26 class QUdpSocket;
    26 class QUdpSocket;
    27 
    27 
    28 class HWNetUdpServer : public HWNetRegisterServer
    28 class HWNetUdpServer : public HWNetRegisterServer
    29 {
    29 {
    30   Q_OBJECT
    30         Q_OBJECT
    31 
    31 
    32  public:
    32     public:
    33   HWNetUdpServer(QObject *parent, const QString & descr, quint16 port);
    33         HWNetUdpServer(QObject *parent, const QString & descr, quint16 port);
    34 
    34 
    35  public slots:
    35     public slots:
    36   void unregister();
    36         void unregister();
    37 
    37 
    38  private slots:
    38     private slots:
    39   void onClientRead();
    39         void onClientRead();
    40 
    40 
    41  private:
    41     private:
    42   QUdpSocket* pUdpSocket;
    42         QUdpSocket* pUdpSocket;
    43   QString m_descr;
    43         QString m_descr;
    44 };
    44 };
    45 
    45 
    46 #endif // _NET_UDPSERVER_INCLUDED
    46 #endif // _NET_UDPSERVER_INCLUDED