#ifndef HW_NMAP_H_ #define HW_NMAP_H_ #include #include "hsocket.h" // addr => 0:down 1:up typedef std::map Nmap; // ip = segment + host // segment16: 192.168.x.x // segment24: 192.168.1.x // @return up_cnt int nmap_discovery(Nmap* nmap); int segment_discovery(const char* segment16, Nmap* nmap); int host_discovery(const char* segment24, Nmap* nmap); #endif // HW_NMAP_H_