LibreVNA/Software/PC_Application/LibreVNA-GUI/tcpserver.h
2024-06-20 14:40:06 +02:00

27 lines
402 B
C++

#ifndef TCPSERVER_H
#define TCPSERVER_H
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
class TCPServer : public QObject
{
Q_OBJECT
public:
TCPServer(int port);
int getPort() {return port;}
public slots:
bool send(QString line);
signals:
void received(QString line);
private:
int port;
QTcpServer server;
QTcpSocket *socket;
};
#endif // TCPSERVER_H