HITDAQ/hit2023v2_client/udpclient.h

29 lines
464 B
C
Raw Normal View History

2023-09-08 15:24:52 +02:00
// udpclient.h
#ifndef UDPCLIENT_H
#define UDPCLIENT_H
#include <QObject>
#include <QUdpSocket>
#include <QTime>
class UdpClient : public QObject
{
Q_OBJECT
public:
explicit UdpClient(QObject *parent = nullptr);
void startClient();
private:
QUdpSocket udpSocket;
int messageCount = 0;
int startTime=0;
int elapsedTimeInmSeconds=0;
2023-09-08 15:24:52 +02:00
public slots:
void receiveData();
void processPendingDatagrams();
2023-09-08 15:24:52 +02:00
};
#endif // UDPCLIENT_H