initial commit
This commit is contained in:
19
third_party/libhv/examples/nmap/nmap.h
vendored
Executable file
19
third_party/libhv/examples/nmap/nmap.h
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#ifndef HV_NMAP_H_
|
||||
#define HV_NMAP_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <map>
|
||||
|
||||
// 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
|
||||
int nmap_discover(Nmap* nmap);
|
||||
int segment_discover(const char* segment16, Nmap* nmap);
|
||||
int host_discover(const char* segment24, Nmap* nmap);
|
||||
|
||||
#endif // HV_NMAP_H_
|
||||
Reference in New Issue
Block a user