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

25 lines
355 B
C
Raw Normal View History

2022-10-01 23:10:44 +08:00
#ifndef TCPSERVER_H
#define TCPSERVER_H
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
class TCPServer : public QObject
{
Q_OBJECT
public:
TCPServer(int port);
public slots:
bool send(QString line);
signals:
void received(QString line);
private:
QTcpServer server;
QTcpSocket *socket;
};
#endif // TCPSERVER_H