-
Notifications
You must be signed in to change notification settings - Fork 0
/
GCIP.h
46 lines (32 loc) · 885 Bytes
/
GCIP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// Created by gaochong on 17-11-24.
//
#ifndef ELANTOOL_GCIP_H
#define ELANTOOL_GCIP_H
#include <string>
class GCIP {
public:
GCIP(void);
~GCIP(void);
char* IPGetPCName( const char *ipAdd );
char* IPToMAC( char* IpAddStr );
int IP2Count( const char* ip1 , const char* ip2 );
char* NextIPaddress( const char *ipAdd );
char* NaddressToIPStr( unsigned long Naddress );
unsigned long IPStrToNaddress( const char *IpStr );
private:
typedef struct TNetBiosNS
{
unsigned short tID;
unsigned short Flags;
unsigned short Questions;
unsigned short AnswerRRs;
unsigned short AuthorityRRs;
unsigned short AdditionalRRs;
char Name[34];
unsigned short tType;
unsigned short tClass;
}packed;
void InitNetBiosNs( TNetBiosNS* nbns );
};
#endif //ELANTOOL_GCIP_H