You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
352 B
26 lines
352 B
#ifndef UDP_Socket_H
|
|
#define UDP_Socket_H
|
|
|
|
#include <QObject>
|
|
#include <QUdpSocket>
|
|
|
|
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
|
|
|