#include <nitroWiFi/soc.h>
#define SOC_INET_ADDRSTRLEN 16
const char* SOC_InetNtoP ( int af, const void* src, char* dst, unsigned len );
af |
Address family (must be SOC_PF_INET) |
src |
Pointer to buffer that stores IPv4 address. |
dst |
Pointer to buffer that stores the result as text string. (Example: ddd.ddd.ddd.ddd) |
len |
dst buffer size. len should be large enough to keep the text string.(With SOC_PF_INET, it should be INET_ADDRSTRLEN bytes) |
If conversion is successful, returns a pointer to the buffer that stores the text string. If conversion is unsuccessful, returns NULL.
This function converts IP addresses from binary addresses to dot-decimal notation character strings.
SOC_InetAtoN, SOC_InetNtoA, SOC_InetPtoN
2005/09/13 Initial version.
CONFIDENTIAL