JavaScript implementation of htonl, htons, ntohl, ntohs - convert values between host and network byte order.