提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
/** |
|
5 |
* @author 251823 |
|
6 |
* @description 网络接口,最大支持DH_MAX_NETINTERFACE_NUM个网卡 |
|
7 |
* @date 2021/9/17 |
|
8 |
*/ |
|
9 |
public class NETDEV_NETINTERFACE_INFO extends NetSDKLib.SdkStructure{ |
|
10 |
/** |
|
11 |
* 结构体大小 |
|
12 |
*/ |
|
13 |
public int dwSize; |
|
14 |
/** |
|
15 |
* 是否有效 |
|
16 |
*/ |
|
17 |
public boolean bValid; |
|
18 |
|
|
19 |
/** |
|
20 |
* 是否虚拟网卡 |
|
21 |
*/ |
|
22 |
public boolean bVirtual; |
|
23 |
|
|
24 |
/** |
|
25 |
* 网卡理论速度(Mbps) |
|
26 |
*/ |
|
27 |
public int nSpeed; |
|
28 |
|
|
29 |
/** |
|
30 |
* 0-未使能, 1-正在获取, 2-获取成功 |
|
31 |
*/ |
|
32 |
public int nDHCPState; |
|
33 |
|
|
34 |
/** |
|
35 |
* 网口名称 |
|
36 |
*/ |
|
37 |
public byte[] szName = new byte[NetSDKLib.NET_NETINTERFACE_NAME_LEN]; |
|
38 |
|
|
39 |
/** |
|
40 |
* 网络类型 |
|
41 |
*/ |
|
42 |
public byte[] szType = new byte[NetSDKLib.NET_NETINTERFACE_TYPE_LEN]; |
|
43 |
|
|
44 |
/** |
|
45 |
* MAC地址 |
|
46 |
*/ |
|
47 |
public byte[] szMAC = new byte[NetSDKLib.NET_MACADDR_LEN]; |
|
48 |
|
|
49 |
/** |
|
50 |
* SSID, 只对无线网络有效(szType == "Wireless") |
|
51 |
*/ |
|
52 |
public byte[] szSSID = new byte[NetSDKLib.NET_MAX_SSID_LEN]; |
|
53 |
|
|
54 |
/** |
|
55 |
* Wifi、3G的连接状态,"Inexistence" : 网络不存在 "Down":关闭 "Disconn":未连接 "Connecting":正连接 "Connected": 已连接 |
|
56 |
*/ |
|
57 |
public byte[] szConnStatus = new byte[NetSDKLib.NET_MAX_CONNECT_STATUS_LEN]; |
|
58 |
|
|
59 |
/** |
|
60 |
* 实际3G支持的网络模式个数 |
|
61 |
*/ |
|
62 |
public int nSupportedModeNum; |
|
63 |
|
|
64 |
/** |
|
65 |
* 3G支持的网络模式 "TD-SCDMA", "WCDMA", "CDMA1x", "EDGE", "EVDO" |
|
66 |
*/ |
|
67 |
public SupportedModeByteArr[] szSupportedModes = (SupportedModeByteArr[])new SupportedModeByteArr().toArray(NetSDKLib.NET_MAX_MODE_NUM); |
|
68 |
|
|
69 |
/** |
|
70 |
* 是否支持长距离POE速度协商,需要网卡和交换机协商后才能确定 |
|
71 |
*/ |
|
72 |
public boolean bSupportLongPoE; |
|
73 |
|
|
74 |
/** |
|
75 |
* 真实网卡名 |
|
76 |
*/ |
|
77 |
public byte[] szNetCardName = new byte[8]; |
|
78 |
|
|
79 |
/** |
|
80 |
* 模块名称 |
|
81 |
*/ |
|
82 |
public byte[] szModuleName = new byte[32]; |
|
83 |
|
|
84 |
/** |
|
85 |
* 国际移动用户识别码 |
|
86 |
*/ |
|
87 |
public byte[] szIMEI = new byte[16]; |
|
88 |
|
|
89 |
/** |
|
90 |
* 集成电路卡识别码即SIM卡卡号,20位数字组成 |
|
91 |
*/ |
|
92 |
public byte[] szICCID = new byte[24]; |
|
93 |
|
|
94 |
public NETDEV_NETINTERFACE_INFO(){ |
|
95 |
this.dwSize = this.size(); |
|
96 |
} |
|
97 |
} |