Skip to content

DD_DDNS_CONFIG

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
typedef struct _dd_ddns_config_
{
    unsigned int iSize;                         
    unsigned short enable;                      
    unsigned short interval;                    
    unsigned int useDDNSServer;                 
    unsigned int userHostDomain;                
    char userName[DD_MAX_DDNS_ACCOUNT_BUF_LEN]; 
    char password[DD_MAX_PASSWORD_BUF_LEN];     
    char hostDomain[DD_MAX_URL_BUF_LEN];        
} DD_DDNS_CONFIG;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_DDNS_CONFIG
{
    public UInt32 iSize;
    public UInt16 enable;
    public UInt16 interval;
    public UInt32 useDDNSServer;
    public UInt32 userHostDomain;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] userName;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] password;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 260)]
    public byte[] hostDomain;
}

Function Description

DDNS configuration structure.

Member Description

Member Type Remark
iSize unsigned int The length of this structure.
enable unsigned short Whether to enable DDNS.
interval unsigned short Report update cycle.
useDDNSServer unsigned int The type or address of the DDNS server used.
userHostDomain unsigned int Whether it is the server host domain name.
userName char[DD_MAX_DDNS_ACCOUNT_BUF_LEN] DDNS account.
password char[DD_MAX_PASSWORD_BUF_LEN] DDNS password.
hostDomain char[DD_MAX_URL_BUF_LEN] Server host domain name (corresponding to a certain protocol, you can specify the server).
Error Code