1 Star 0 Fork 0

red1y / Port-Scanner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 681 Bytes
一键复制 编辑 原始数据 按行查看 历史
red1y 提交于 2022-03-14 21:07 . 1.0
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "scanthread.h"
#include <QTime>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
int totTask;
int finTask;
QStringList openedPort;
Ui::MainWindow *ui;
ScanThread* threadPool[64];
bool isOver;
QTime startTime, endTime;
void* scan_some_port(void *arg);
void showAllOpenedPorts();
public slots :
void scan();
void terminateScan();
void updateResult(QString info, bool open);
};
#endif // MAINWINDOW_H
1
https://gitee.com/red1y/port-scanner.git
git@gitee.com:red1y/port-scanner.git
red1y
port-scanner
Port-Scanner
master

搜索帮助