3#include <QtCore/QObject>
4#include <QtNetwork/QHostAddress>
23 explicit ADSBTCPLink(
const QHostAddress &hostAddress, quint16 port = 30003, QObject *parent =
nullptr);
50 void _parseLine(
const QString &line);
67 QHostAddress _hostAddress;
68 quint16 _port = 30003;
70 QTcpSocket *_socket =
nullptr;
71 QTimer *_processTimer =
nullptr;
72 QStringList _lineBuffer;
74 static constexpr int _processInterval = 50;
75 static constexpr int _maxLinesToProcess = 100;
The ADSBTCPLink class handles the TCP connection to an ADS-B server and processes incoming ADS-B data...
bool init()
Attempts connection to a host.
void errorOccurred(const QString &errorMsg, bool stopped=false)
~ADSBTCPLink()
Destroys the ADSBTCPLink object.
void adsbVehicleUpdate(const ADSB::VehicleInfo_t &vehicleInfo)