2024-06-20 15:56:38 +02:00
|
|
|
#ifndef STREAMINGSERVER_H
|
|
|
|
|
#define STREAMINGSERVER_H
|
|
|
|
|
|
|
|
|
|
#include <QTcpServer>
|
|
|
|
|
#include <QTcpSocket>
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
|
|
#include "Device/devicedriver.h"
|
|
|
|
|
|
|
|
|
|
class StreamingServer : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
StreamingServer(int port);
|
|
|
|
|
|
2025-04-16 19:55:21 +02:00
|
|
|
void addData(const DeviceDriver::VNAMeasurement &m, bool is_zerospan);
|
|
|
|
|
void addData(const DeviceDriver::SAMeasurement &m, bool is_zerospan);
|
2024-06-20 15:56:38 +02:00
|
|
|
|
|
|
|
|
int getPort() {return port;}
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int port;
|
|
|
|
|
QTcpServer server;
|
|
|
|
|
std::set<QTcpSocket*> sockets;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // STREAMINGSERVER_H
|