mirror of
https://github.com/jie65535/DaemonService.git
synced 2024-07-27 19:04:56 +08:00
update
增加手动移出白名单 连续连接移出白名单
This commit is contained in:
32
worker.h
Normal file
32
worker.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef WORKER_H
|
||||
#define WORKER_H
|
||||
|
||||
#include <QTcpSocket>
|
||||
#include <QRunnable>
|
||||
#include <QList>
|
||||
|
||||
class Worker : public QRunnable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief 唯一构造
|
||||
* @param socket对象
|
||||
*/
|
||||
Worker(qintptr socketDescriptor, const QList<int> &portList)
|
||||
: m_socketDescriptor(socketDescriptor), m_portList(portList){}
|
||||
|
||||
protected:
|
||||
/**
|
||||
* @brief 线程运行方法
|
||||
*/
|
||||
virtual void run();
|
||||
private:
|
||||
/**
|
||||
* @brief socket对象
|
||||
*/
|
||||
QTcpSocket *m_socket;
|
||||
qintptr m_socketDescriptor;
|
||||
QList<int> m_portList;
|
||||
};
|
||||
|
||||
#endif // WORKER_H
|
||||
Reference in New Issue
Block a user