20 #include <sys/cdefs.h>
35 uint32_t
htonl(uint32_t value);
41 uint32_t
ntohl(uint32_t value);
47 uint16_t
htons(uint16_t value);
53 uint16_t
ntohs(uint16_t value);
112 int inet_pton(
int af,
const char *src,
void *dst);
char * inet_ntoa(struct in_addr addr)
Convert a binary representation of an IPv4 address to a string.
uint32_t htonl(uint32_t value)
Convert a 32-bit value from host byte order to network byte order.
uint16_t htons(uint16_t value)
Convert a 16-bit value from host byte order to network byte order.
uint16_t ntohs(uint16_t value)
Convert a 16-bit value from network byte order to host byte order.
Definitions for the Internet address family.
const char * inet_ntop(int af, const void *src, char *dst, socklen_t size)
Convert a binary representation of an IP address to a string.
uint32_t ntohl(uint32_t value)
Convert a 32-bit value from network byte order to host byte order.
in_addr_t inet_addr(const char *cp)
Convert a string representation of an IPv4 address to an in_addr_t.
Structure used to store an IPv4 address.
Definition: in.h:43
int inet_aton(const char *cp, struct in_addr *pin)
Convert a string representation of an IPv4 address to a struct in_addr.
uint32_t in_addr_t
32-bit value used to store an IPv4 address.
Definition: in.h:38
__uint32_t socklen_t
Socket length type.
Definition: socket.h:30
int inet_pton(int af, const char *src, void *dst)
Convert a string representation of an IP address to its binary representation.