59static inline uint16_t
htons(uint16_t value) {
67static inline uint16_t
ntohs(uint16_t value) {
Various common macros used throughout the codebase.
uint32_t in_addr_t
32-bit value used to store an IPv4 address.
Definition in.h:43
__uint32_t socklen_t
Socket length type.
Definition socket.h:39
in_addr_t inet_addr(const char *cp)
Convert a string representation of an IPv4 address to an in_addr_t.
int inet_aton(const char *cp, struct in_addr *pin)
Convert a string representation of an IPv4 address to a struct in_addr.
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.
char * inet_ntoa(struct in_addr addr)
Convert a binary representation of an IPv4 address to a string.
int inet_pton(int af, const char *src, void *dst)
Convert a string representation of an IP address to its binary representation.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
use __builtin_bswap32().") static inline uint32_t arch_swap32(uint32_t x)
Definition byteorder.h:69
use ntohs() from< arpa/inet.h >") static inline uint16_t arch_ntohs(uint16_t x)
Definition byteorder.h:85
use __builtin_bswap16().") static inline uint16_t arch_swap16(uint16_t x)
Definition byteorder.h:55
use htonl() from< arpa/inet.h >") static inline uint32_t arch_htonl(uint32_t x)
Definition byteorder.h:133
use ntohl() from< arpa/inet.h >") static inline uint32_t arch_ntohl(uint32_t x)
Definition byteorder.h:101
use htons() from< arpa/inet.h >") static inline uint16_t arch_htons(uint16_t x)
Definition byteorder.h:117
Definitions for the Internet address family.
Structure used to store an IPv4 address.
Definition in.h:49