#include <netinet/in.h>Defines | |
| #define | _INET_IN_H 1 |
Functions | |
| int16_t | inet_pton (int16_t af, const char *src, in6_addr_t *dst) |
| const char * | inet_ntop (int16_t af, const in6_addr_t *src, char *dst, uint8_t cnt) |
| uint16_t | ntohs (uint16_t netshort) |
| uint16_t | htons (uint16_t hostshort) |
| uint32_t | ntohl (uint32_t netlong) |
| uint32_t | htonl (uint32_t hostlong) |
| #define _INET_IN_H 1 |
| uint32_t htonl | ( | uint32_t | hostlong | ) |
Convert a host byte order (little-endian) long, hostlong, by returning a network byte order (big-endian) long.
| uint16_t htons | ( | uint16_t | hostshort | ) |
Convert a host byte order (little-endian) short, hostshort, by returning a network byte order (big-endian) short.
| const char* inet_ntop | ( | int16_t | af, | |
| const in6_addr_t * | src, | |||
| char * | dst, | |||
| uint8_t | cnt | |||
| ) |
This system call converts a network address structure defined in src to the character string dst using af address family.
| [in] | af | AF address family. See AFEnums. |
| [in] | src | contains an IP address string |
| [out] | dst | string buffer |
| [in] | cnt | number of bytes in the buffer |
| int16_t inet_pton | ( | int16_t | af, | |
| const char * | src, | |||
| in6_addr_t * | dst | |||
| ) |
This system call converts the character string src into a network address structure in the af address family, then copies the network address structure to dst.
| [in] | af | AF address family. See AFEnums. |
| [in] | src | contains an IP address string |
| [out] | dst | copy into this network data structure |
| uint32_t ntohl | ( | uint32_t | netlong | ) |
Convert a network byte order (big-endian) long, netlong, by returning a host byte order (little-endian) long.
| uint16_t ntohs | ( | uint16_t | netshort | ) |
Convert a network byte order (big-endian) short, netshort, by returning a host byte order (little-endian) short.
1.5.5