mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:06:34 +00:00
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);
|
|
};
|