1 2 3 4 5
#include <stdint.h> uint16_t ntohs(uint16_t net); uint16_t htons(uint16_t net); uint32_t htonl(uint32_t net);