Converts IPv4 and IPv6 addresses from text to socket-address structure.
- Parameters
-
| str | Null-terminated character string that contains the text representation of the IP address to convert to socket-address structure. The sa_port is set to zero. |
| addr | Pointer to a socket-address structure to be filled. |
- Returns
- This function returns:
- FNET_OK if no error occurs.
- FNET_ERR if the string in the
str parameter does not contain a legitimate Internet address.
- See also
- fnet_inet_pton()
This function converts the character string src into a socket-address structure.