1 2 3 4 5 6
#include <stdint.h> uint32_t htonl(uint32_t hl); uint16_t htons(uint16_t hs); uint32_t ntohl(uint32_t nl); uint16_t ntohs(uint16_t ns);