#ifndef UDP_Socket_H #define UDP_Socket_H #include #include class UDP_Socket : public QObject { Q_OBJECT public: explicit UDP_Socket(QObject* parent = nullptr); void SayHello(); void SayMsg(QString a); signals: public slots: void readyRead(); private: QUdpSocket* socket; }; #endif //UDP_Socket_H