LibreVNA/Software/PC_Application/LibreVNA-GUI/tcpserver.h

27 lines
402 B
C
Raw Normal View History

2022-10-01 17:10:44 +02:00
#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;}
2022-10-01 17:10:44 +02:00
public slots:
bool send(QString line);
signals:
void received(QString line);
private:
int port;
2022-10-01 17:10:44 +02:00
QTcpServer server;
QTcpSocket *socket;
};
#endif // TCPSERVER_H