First page Back Continue Last page Overview Graphics
Address conversion functions
Binary-to-text
int inet_pton(int af, const char *src, void *dst);
Text-to-binary
const char *inet_ntop(int af, const void *src,
char *dst, size_t size);
Note: Only standard Ipv6 dotted-decimal format is accepted; it DOES NOT accept octal numbers, hexadecimal numbers, and fewer than 4 numbers
Maximum size for address string (incl. NUL)
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
Notes: