Ctrl Command eth_convert_ip_to_string
Function
Converts an IP address in big-endian byte order to the usual dotted decimal notation (for
example, "192.168.250.1").
eth_convert_ip_to_string( Ip, IpString )
Call
Ip
Parameters
IpString
Result
None.
Comments
• eth_convert_ip_to_string is not available as a multi-board command.
• For storage of the converted IP address, the user program must provide a memory area
of 4 × 4 bytes at the address specified by IpString.
• Example: Ip = 33204416, IpString[0] = "192.", IpString[1] = "168.",
IpString[2] = "250.", IpString[3] = "1\0xx".
• The use of eth_convert_ip_to_string is useful, for example, for eth_get_static_ip.
• See also
RTC4RTC6
New command.
RTC5RTC6
New command.
Version info
Available as of DLL 606, OUT 606, RBF 611.
References
eth_convert_string_to_ip,
RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
To-be converted IP address in big-endian byte order.
As an unsigned 32-bit value.
Converted IP address. As a pointer (in C and C++ data type ULONG_PTR,
an unsigned 32-bit value or unsigned 64-bit value) to an array of 4
unsigned 32-bit values, where the converted IP address as a string in usual
dotted decimal notation can be found (synonymously to a character array
of length 16, low byte first, with concluding \0).
Chapter 16.5.1 "Notes on Working with IP Addresses", page
eth_get_static_ip
904.
358
Need help?
Do you have a question about the RTC6 PCIe Board and is the answer not in the manual?