mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:46:33 +00:00
45c19baa45
- autopilot -> drone_controller - rtsp_ai_player -> ai_controller - added top level qmake project file - updated documentation - moved small demo applications from tmp/ to misc/
22 lines
345 B
C++
22 lines
345 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QUdpSocket>
|
|
#include <QJsonDocument>
|
|
|
|
class UdpServer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit UdpServer(int portNumber, QObject *parent = nullptr);
|
|
|
|
private slots:
|
|
void readPendingDatagrams();
|
|
|
|
private:
|
|
QUdpSocket *mUdpSocket;
|
|
|
|
signals:
|
|
void newJsonDocument(QJsonDocument);
|
|
};
|