nmap.h 399 B

12345678910111213141516171819
  1. #ifndef HW_NMAP_H_
  2. #define HW_NMAP_H_
  3. #include <map>
  4. #include "hsocket.h"
  5. // addr => 0:down 1:up
  6. typedef std::map<uint32_t, int> Nmap;
  7. // ip = segment + host
  8. // segment16: 192.168.x.x
  9. // segment24: 192.168.1.x
  10. // @return up_cnt
  11. int nmap_discovery(Nmap* nmap);
  12. int segment_discovery(const char* segment16, Nmap* nmap);
  13. int host_discovery(const char* segment24, Nmap* nmap);
  14. #endif // HW_NMAP_H_