Structure Definition
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | typedef struct _network_platform
{
unsigned int CurrentPlat;
unsigned int Switcher;
unsigned int Port;
unsigned int ReportId;
char szAddress[16];
unsigned int SwitchGB;
unsigned int PortGB;
unsigned int uLocalPort;
char szRelm[16];
char szAddressGB[16];
char szUserName[16];
char szPassword[16];
char szDeviceIdGB[32];
char szServerIdGB[32];
} DD_NETWORK_PLATFORM;
|
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 | [StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_NETWORK_PLATFORM
{
public UInt32 CurrentPlat;
public UInt32 Switcher;
public UInt32 Port;
public UInt32 ReportId;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
public byte[] szAddress;
public UInt32 SwitchGB;
public UInt32 PortGB;
public UInt32 uLocalPort;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
public byte[] szRelm;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
public byte[] szAddressGB;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
public byte[] szUserName;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
public byte[] szPassword;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
public byte[] szDeviceIdGB;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
public byte[] szServerIdGB;
}
|
Function Description
Register the upper-level platform. N9000 supports both national standard and platform software. IPC can ignore the national standard.
Member Description
| Member | Type | Remark |
| CurrentPlat | unsigned int | The current platform, the default is 1, indicating platform software, and 2 indicates national standard. |
| Switcher | unsigned int | Platform software, 1 means enabled, 0 means not enabled. |
| Port | unsigned int | Platform software, ports. |
| ReportId | unsigned int | Platform software, device ID. |
| szAddress | char[16] | Platform software, IP address. |
| SwitchGB | unsigned int | National standard, 1 means enabled, 0 means not enabled. |
| PortGB | unsigned int | National standard, port. |
| uLocalPort | unsigned int | National standard, local port. |
| szRelm | char[16] | National standard, sip server domain. |
| szAddressGB | char[16] | GB, address. |
| szUserName | char[16] | GB, user name. |
| szPassword | char[16] | National standard, password. |
| szDeviceIdGB | char[32] | National standard, device ID. |
| szServerIdGB | char[32] | National standard, sip server ID. |