Byte Order - Endianess Different machine architectures dictate different methods for storing numbers in memory. When we store a short (2 bytes) integer, we can store it in one of two formats: Thus, we need to give al port numbers and host addresses in an endianess defined as "network byte order", and some macros are defined to help with this.