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.

29 lines
452 B

#ifndef UDPSOCKET_H
#define UDPSOCKET_H
#include <QObject>
#include <QUdpSocket>
class UdpSocket : public QObject
{
Q_OBJECT
2 years ago
private:
QUdpSocket* _socket;
const quint16 _port;
public:
explicit UdpSocket(QObject* parent = nullptr, quint16 port = 1234);
~UdpSocket();
void sayHello();
void sayMsg(const QString& msg);
//uncrustify off
public slots:
//uncrustify on
void readyRead();
};
#endif //UDPSOCKET_H