8 Star 11 Fork 7

Micooz / PortScanner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ConnectScanner.h 707 Bytes
一键复制 编辑 原始数据 按行查看 历史
Micooz 提交于 2014-10-23 10:54 . Project init
#ifndef _CONNECT_SCANNER_H_
#define _CONNECT_SCANNER_H_
#include "IScanner.h"
namespace PortScanner {
class ConnectScanner :
public IScanner {
public:
void Schedule(const std::string ip, uint16_t port);
//vector<shared_ptr<ResultItem> > GetResult();
void Run();
ConnectScanner();
~ConnectScanner();
protected:
void Notify(shared_ptr<ResultItem>);
void Attach(shared_ptr<IOutputer> outputer);
void Detach(shared_ptr<IOutputer> outputer);
private:
void HandleSchedule(const shared_ptr<HandleUnit> unit);
vector<ResultItem*> _rst;
boost::thread_group _tgrp;
};
}
#endif //_CONNECT_SCANNER_H_
C++
1
https://gitee.com/micooz/PortScanner.git
git@gitee.com:micooz/PortScanner.git
micooz
PortScanner
PortScanner
master

搜索帮助