SkyPulse UAV V0.1
Loading...
Searching...
No Matches
UDP.h
Go to the documentation of this file.
1#ifndef UDP_H
2#define UDP_H
3
4#include <QThread>
5#include <QObject>
6#include <QUdpSocket>
7
8class UDP : public QObject
9{
10 Q_OBJECT
11public:
12 explicit UDP(QObject *parent = nullptr);
13 ~UDP();
14
15public slots:
16 void startServer(quint16 port);
17 void stopServer();
18
19private:
20 QUdpSocket *udpSocket;
21 QThread *UDPThread;
22
23private slots:
24 void udpInitial();
25 void readPendingDatagrams();
26
27signals:
28 void messageReceived(const QString &message);
31
32};
33
34#endif // UDP_H
Definition UDP.h:9
void stopServer()
Definition UDP.cpp:37
UDP(QObject *parent=nullptr)
Definition UDP.cpp:4
void messageReceived(const QString &message)
void ServerStartSucessful()
~UDP()
Definition UDP.cpp:13
void startServer(quint16 port)
Definition UDP.cpp:26
void ServerStopSucessful()