Penguin
Note: You are viewing an old revision of this page. View the current version.

The Endian? of bytes when sent over the wire in a protocol. Most NetworkByteOrder's are BigEndian, however notably microsoft protocols tend to be LittleEndian. Intel Machines are LittleEndian. LibC provides functions to convert to/from NetworkByteOrder (BigEndian) from HostByteOrder? (on Intel LittleEndian) called htonl(3) (host to network long (32 bits)), htons(3) (host to network short (16 bits)), ntohl(3) (network to host long (32bits)), ntohs(3) (network to host short (16bits)).