| 123456789101112131415161718192021 |
- #ifndef HV_NMAP_H_
- #define HV_NMAP_H_
- #include <map>
- #include "hexport.h"
- #include "hsocket.h"
- // addr => 0:down 1:up
- typedef std::map<uint32_t, int> Nmap;
- // ip = segment + host
- // segment16: 192.168.x.x
- // segment24: 192.168.1.x
- // @return up_cnt
- HV_EXPORT int nmap_discover(Nmap* nmap);
- HV_EXPORT int segment_discover(const char* segment16, Nmap* nmap);
- HV_EXPORT int host_discover(const char* segment24, Nmap* nmap);
- #endif // HV_NMAP_H_
|