nmap.h 375 B

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