Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

nmi_inet_addr

nmi_inet_addr
[Function]

Synchronous function which returns a BSD socket compliant Internet Protocol (IPv4) socket address. More...

Functions

NMI_API uint32 nmi_inet_addr (char *pcIpAddr)

Detailed Description

Synchronous function which returns a BSD socket compliant Internet Protocol (IPv4) socket address.

This IPv4 address in the input string parameter could either be specified as a host name, or as a numeric string representation like n.n.n.n known as the IPv4 dotted-decimal format (i.e. "192.168.10.1"). This function is used whenever an ip address needs to be set in the proper format (i.e. for the tstrM2MIPConfig structure).


Function Documentation

NMI_API uint32 nmi_inet_addr ( char *  pcIpAddr )
Parameters:
[in]pcIpAddrA null terminated string containing the IP address in IPv4 dotted-decimal address.
Returns:
Unsigned 32-bit integer representing the IP address in Network byte order (eg. "192.168.10.1" will be expressed as 0x010AA8C0).