Debian Codegraph @

third-party/libhv-v1.3.3/examples/nmap/nmap.h

raw
1 #ifndef HV_NMAP_H_
2 #define HV_NMAP_H_
3
4 #include <stdint.h>
5 #include <map>
6
7 // addr => 0:down 1:up
8 typedef std::map<uint32_t, int> Nmap;
9
10 // ip = segment + host
11 // segment16: 192.168.x.x
12 // segment24: 192.168.1.x
13
14 // @return up_cnt
15 int nmap_discover(Nmap* nmap);
16 int segment_discover(const char* segment16, Nmap* nmap);
17 int host_discover(const char* segment24, Nmap* nmap);
18
19 #endif // HV_NMAP_H_