Host - network byte order manipulation functions. More...
#include <byteorder.h>
#include <sys/types.h>
Defines | |
#define | htons(number) host2uint16_t_be(number) |
Converts the given short number (16 bit) from the host byte order to the network byte order (big endian). | |
#define | htonl(number) host2uint32_t_be(number) |
Converts the given long number (32 bit) from the host byte order to the network byte order (big endian). | |
#define | ntohs(number) uint16_t_be2host(number) |
Converts the given short number (16 bit) from the network byte order (big endian) to the host byte order. | |
#define | ntohl(number) uint32_t_be2host(number) |
Converts the given long number (32 bit) from the network byte order (big endian) to the host byte order. |
Host - network byte order manipulation functions.