Reserved Identifiers
129
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
GET_DNS_LIST
This function returns the domain name and list of DNS server IP addresses that
the specified device is programmed to utilize. The order of the returned list is
the preferred server order.
DNS_STRUCT DnsListresult = GET_DNS_LIST(0:0:0,DnsList)
SLONG GET_DNS_LIST(DEV Device,DNS_STRUCT DnsList )
Parameters:
•
Device
: Device from which the DNS servers will be retrieved.
•
DnsList
: A
DNS_STRUCT
that will receive the device's DNS server list.
Result:
• 0: Operation was not successful
• -1: Specified device is invalid or is not online
• -2: Request timed out
• -3: Busy
The function requires a
DNS_STRUCT
. The
DNS_STRUCT
is predefined as fol-
lows:
STRUCTURE DNS_STRUCT
{
CHAR DomainName[68] // domain suffix (e.g. amx.com)
CHAR DNS1[15] // IP address of 1st DNS server
CHAR DNS2[15] // IP address of 2nd DNS server
CHAR DNS3[15] // IP address of 3rd DNS server
}
GET_IP_ADDRESS
This function returns the TCP/IP configuration of the specified device. The con-
figuration information includes DHCP/Static configuration, IP address,
subnet mask, gateway, and host name.
SLONG GET_IP_ADDRESS(DEV Device,IP_ADDRESS_STRUCT
IPAddress)
Parameters:
•
Device
: Device from which the TCP/IP configuration will be retrieved.
•
IPAddress
: An
IP_ADDRESS_STRUCT
that will receive the device's TCP/IP
configuration.
Result:
• 0: Operation was successful
• -1: Specified device is invalid or is not online
• -2: Request timed out
• -3: Busy
The function requires an
IP_ADDRESS_STRUCT
..
The
IP_ADDRESS_STRUCT
is predefined as follows:
STRUCTURE IP_ADDRESS_STRUCT
{
CHAR Flags // Configuration flags
CHAR HostName[128] // Host name
CHAR IPAddress[15] // IP address unit
CHAR SubnetMask[15] // subnet mask
CHAR Gateway[15] // IP address of gateway
}
The following definitions exist for the Flags member of the
IP_ADDRESS_STRUCT
structure.
CONSTANT CHAR IP_Addr_Flg_DHCP = 1 // Use DHCP
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...