RecordControlApplication/TcpServer.h

23 lines
357 B
C
Raw Normal View History

2024-01-18 15:41:43 +08:00
#ifndef TCPSERVER_H
#define TCPSERVER_H
#include "TcpController.h"
#include <QTcpServer>
class TcpServer : public QTcpServer {
Q_OBJECT
public:
TcpServer(QObject* parent = nullptr);
private slots:
void onReadyRead();
void onNewConnect();
private:
TcpController* controller;
QList<QTcpSocket*> clients;
};
#endif // TCPSERVER_H